Skip to main content

generatetoaddress

Command#

pacprotocol-cli generatetoaddress nblocks address (maxtries)

Mine blocks immediately to a specified address (before the RPC call returns)

Arguments#

nblocks *#

(numeric, required)

How many blocks are generated immediately.

address *#

(string, required)

The address to send the newly generated PAC Protocol to.

maxtries#

(numeric, optional)

How many iterations to try (default = 1000000).

Examples#

Generate 11 blocks to myaddress

pacprotocol-cli generatetoaddress 11 "myaddress"

Result#

[ blockhashes ] #(array) hashes of blocks generated

Running following help command

pacprotocol-cli help generatetoaddress

Will produce following output:

generatetoaddress nblocks address (maxtries)
Mine blocks immediately to a specified address (before the RPC call returns)
Arguments:
1. nblocks (numeric, required) How many blocks are generated immediately.
2. address (string, required) The address to send the newly generated PAC Protocol to.
3. maxtries (numeric, optional) How many iterations to try (default = 1000000).
Result:
[ blockhashes ] (array) hashes of blocks generated
Examples:
Generate 11 blocks to myaddress
> pacprotocol-cli generatetoaddress 11 "myaddress"