bytecoin
bytecoin copied to clipboard
Generate multiple addresses in a wallet
Hi,guys!
I used the walletd version 3.3.0,and I tried to generate multiple addresses in a wallet using the below way:
curl -X POST http://
When I generate address,should I need synchronize the full blockchain data?? Could I generate address off-line???
@lhfly5201314 According to the wiki section you cited, to create new addresses (say, 3
) you should make a request with secret_spend_keys
list filled with the empty strings of desired length (3
).
Here is an example of how to create three new addresses in your wallet:
curl -X POST http://127.0.0.1:8070/json_rpc -H 'Content-Type: application/json-rpc' -d '{"jsonrpc": "2.0", "id": "", "method": "create_addresses", "params": {"secret_spend_keys":["", "", ""]}}'
@bcndev Hi,friend!I tried your command with secret_spend_keys params, still returned nothong,no errors. I am sure the port is listening.And I tried curl -X POST http://127.0.0.1:8081/json_rpc -H 'Content-Type: application/json-rpc' -d '{"jsonrpc": "2.0", "id": "", "method": "get_status", "params": {}}',request from the bitcoind ,it returned the correct info. If I run the same command(or get_addresses) with 127.0.0.1:8070 requesting from the walletd,still returned nothing,no errors.. Any more advices???Thanks!