RPC Browser

Arguments


Help Content

generatetodescriptor num_blocks "descriptor" ( maxtries )

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

Arguments:
1. num_blocks    (numeric, required) How many blocks are generated immediately.
2. descriptor    (string, required) The descriptor to send the newly generated bitcoin to.
3. maxtries      (numeric, optional, default=1000000) How many iterations to try.

Result:
[           (json array) hashes of blocks generated
  "hex",    (string) blockhash
  ...
]

Examples:

Generate 11 blocks to mydesc
> bitcoin-cli generatetodescriptor 11 "mydesc"

num_blocks

{
    "name": "num_blocks",
    "detailsLines": [],
    "properties": [
        "numeric",
        "required"
    ],
    "description": "How many blocks are generated immediately."
}

descriptor

{
    "name": "descriptor",
    "detailsLines": [],
    "properties": [
        "string",
        "required"
    ],
    "description": "The descriptor to send the newly generated bitcoin to."
}

maxtries

{
    "name": "maxtries",
    "detailsLines": [],
    "properties": [
        "numeric",
        "optional",
        "default=1000000"
    ],
    "description": "How many iterations to try."
}

Recent (5)

Blockchain (25)

Control (6)

Generating (3)

Mining (6)

Network (13)

Rawtransactions (17)

Signer (1)

Util (8)

Wallet (61)

Zmq (1)