Skip to content

Discoin Quick Start

Florent edited this page Aug 23, 2019 · 3 revisions

Create a Discoin wallet

To create a new Discoin wallet, execute the following:

$ discoin_wallet --generate-new-wallet --daemon-host=<daemon-host> --daemon-port=<daemon-port>

where:

  • <wallet-file> is the name of the local wallet file, for example discoinwallet
  • <daemon-host> is the remote daemon's IP address, for example 35.229.96.141 for a core Discoin node or 127.0.0.1 for local Discoin node
  • <daemon-port> is the remote daemon's TCP port, by default 28002

A password will be asked twice to secure the access to the wallet.

Once created, the following output will be printed to the console:

Generated new wallet: dy2oYZSAHyw4wSwSzfWnvuNRu2mnbA7n3VgfGsPCBVyhiCZ4A7281wiXCtF77yN7ED6EkCZuqimqycC2scDPAuvv1X9X2ZAbS
View secret key: 94b7be78845c02fbc888ceea5e7a0c9c2c3dfa48b70be0c10043b8569138b30a
Spend secret key: 508e48b48fb7e37a97a9931b15dbddcd2447a0a3748fe8d51c6600f7732a860c

where:

  • the first line contains the address of the Discoin wallet on which to receive payments
  • the second line contains the view secret key of the wallet
  • the third line contains the spend secret key of the wallet

Note: The view and spend secrets key must be kept in a secure location. They are the only elements that can be used to restore your wallet in case of a problem.

Open an existing Discoin wallet

To open an existing Discoin wallet, execute the following:

$ discoin_wallet --wallet-file=<wallet-file> --daemon-host=<daemon-host> --daemon-port=<daemon-port>

where:

  • <wallet-file> see above
  • <daemon-host> see above
  • <daemon-port> see above

The wallet password will be asked to open the wallet.

Restore a Discoin wallet from secret keys

To restore a Discoin wallet from view and spend secret keys, execute the following:

$ discoin_wallet --wallet-file=<wallet-file> --import-view-secret-key=<view-secret-key> --import-spend-secret-key=<spend-secret-key>

where:

  • <wallet-file> is the name of the local wallet file, for example discoinwallet
  • <view-secret-key> is the wallet view secret key, for example 94b7be78845c02fbc888ceea5e7a0c9c2c3dfa48b70be0c10043b8569138b30a from the example above
  • <spend-secret-key> is the wallet view secret key, for example 508e48b48fb7e37a97a9931b15dbddcd2447a0a3748fe8d51c6600f7732a860c from the example above

Start a Discoin blockchain node

To start the Discoin Daemon you can simply use the following command:

$ discoind --p2p-bind-ip= --p2p-bind-port= --rpc-bind-ip= --rpc-bind-port=

where:

  • <p2p-bind-ip> is the IP interface for the peer-to-peer network protocol, for example 0.0.0.0 to listen on external connections
  • <p2p-bind-port> is the port for the peer-to-peer network protocol, by default 28001
  • <rpc-bind-ip> is the IP interface to listen on for the JSON RPC interface, for example 127.0.0.1 for localhost only or 0.0.0.0 to listen on external connections
  • <rpc-bind-port> is the port to listen on for the JSON RPC interface, by default 28002 After that, the Discoin Daemon will synchronise with the other Discoin nodes.
You can’t perform that action at this time.