Вы находитесь на странице: 1из 3

=== How to start Bytecoin RPC Wallet ===

To start using RPC wallet you must first generate an address or import legacy
*.keys or *.wallet files.

=== Generating new address ===

To generate new address you must run the following command:

$ ./walletd --wallet-file=<mywallet> --wallet-password=<mypass> --generate-wallet

where:
<mywallet> is a path to new wallet file (relative or absolute);
<mypass> is a secret password. Whichever you like;
--generate-wallet option tells RPC wallet to generate wallet file and exit.

Note: if <mywallet> exists Bytecoin RPC Wallet will show you the notification and
will ask you to select a different name.

If the operation was successful you will get a corresponding message with your new
Bytecoin address. At the same time Bytecoin RPC Wallet will save you address on the
local disk and shut down. In order to start working with this address you should
launch Bytecoin RPC Wallet with the corresponding file.

=== Importing keys ===

Use following command to import *.keys or *.wallet files.

$ ./walletd --wallet-file=<mywallet> --wallet-password=<mypass> --import-


keys=<path/to/keys>

where:
<mywallet> is a path to the wallet file (relative or absolute) where the wallet
will be imported to;
<mypass> is a password to your legacy wallet. The same password will be used for
the new wallet;
<path/to/keys> is a path (relative or absolute) to your simplewallets
*.keys/*.wallet file;
--import-keys is an option that makes RPC wallet import wallet keys and exit.

Note: this operation doesn't import your legacy wallet cache and payments. You need
to synchronize your wallet again.

=== Configuring Bytecoin RPC Wallet ===

To configure RPC wallet you can use both command line and config file. To get help
on available options run:

$ ./walletd -h

Please note, Bytecoin RPC Wallet config file may consist only of these options:

bind-address
bind-port
daemon-address
daemon-port
wallet-file
wallet-password
log-file
server-root
log-level
testnet

Here's an example of a config file:

$ cat rpc_wallet.conf
wallet-file = mywallet
wallet-password = mypassword
daemon-port = 8091
bind-port = 8050
testnet=no #or yes

Note: config file's path is relative to current working directory, not server root.

Note: options "wallet-file" and "wallet-password" should ALWAYS be set (in either
command line or config file mode).

Note: "wallet-file" and "log-file" options are relative to "server-root". "server-


root" default is the current working directory.

Note: "log-file" default is "walletd.log"

=== Starting Bytecoin RPC Wallet ===

Use this command in order to start your Bytecoin RPC Wallet with previously created
wallet:

$ ./walletd --wallet-file=<mywallet> --wallet-password=<mypass>

=== Running Bytecoin RPC Wallet ===

Bytecoin RPC Wallet can be started in both daemon and interactive modes.
If "--daemon" option is not given, the RPC wallet starts in interactive mode.

Note: the daemon should be running at the moment RPC wallet is starting.

=== Starting as daemon (UNIX only) ===

To start RPC wallet as daemon just set "--daemon" (or short "-d") option.

Note: it's a common practice for daemons to set server root directory.
Server root is the directory where RPC Wallet stores all it's files. All relative
paths in RPC Wallet configuration are relative to the server root.

=== Starting as service (Windows only) ===

a. To run RPC wallet as a service on Windows you should write a config file and
place it in the same directory your RPC wallets executable resides in.

A note for Windows Users: In case the server root in config file is not specified
all paths should be ABSOLUTE. If you set server root you can use relative paths
(relative to your server root);

b. Please do not forget to register your Bytecoin RPC Wallet as a service. To do


so, run it as an Administrator:

walletd --register-service

c. After you see message about successful service registration you can run it in
your Services panel.

=== Uninstalling service (Windows only) ===

If you want to delete RPC wallet you have to unregister windows service (if you
have registered it before). Run as ADMINISTRATOR:

walletd --unregister-service

Оценить