generatetoaddress
generatetoaddress nblocks address (maxtries)
Mine blocks immediately to a specified address (before the RPC call returns)
# Generate 11 blocks to myaddress
yerbas-cli generatetoaddress 11 "myaddress"
Arguments
Argument | Type | Description |
---|---|---|
nblocks | (numeric) | How many blocks are generated immediately. |
address | (string) | The address to send the newly generated Yerbas to. |
maxtries | (numeric) | How many iterations to try (default = 1000000). |
Arguments:
1. nblocks (numeric, required) How many blocks are generated immediately.
2. address (string, required) The address to send the newly generated Yerbas to.
3. maxtries (numeric, optional) How many iterations to try (default = 1000000).
Output
Result | Type | Description |
---|---|---|
"blockhashes" | (array) | hashes of blocks generated |
Result:
[ blockhashes ] (array) hashes of blocks generated
Examples
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "generatetoaddress", "params": [11, "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/