Skip to content

submitblocklight JSON-RPC command

submitblocklight "hexdata" "job_id"

Attempts to submit a new block to network, based on a previous call to getblocktemplatelight.
See the getblocktemplatelight spec in the doc folder for full specification.

Arguments

1. hexdata    (string, required) The hex-encoded block data to submit. The block must have exactly 1 transaction (coinbase). Additional transactions (if any) are appended from the light template.
2. job_id     (string, required) Identifier of the light template from which to retrieve the non-coinbase transactions. This job_id must be obtained from a previous call to getblocktemplatelight.

Examples

> bitcoin-cli submitblocklight "mydata" "myjobid"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "submitblocklight", "params": ["mydata", "myjobid"] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/

Bitcoin Cash Node Daemon version v27.1.1-1ce1d89

Documentation on docs.bitcoincashnode.org reflects the current master branch in Git, and may include API changes that are not yet present in the latest release.