Skip to content

validateblocktemplate JSON-RPC command

validateblocktemplate "hexdata"

Returns whether this block template will be accepted if a hash solution is found.
Returns a JSON error when the header is invalid.

Arguments

1. hexdata    (string, required) the hex-encoded block to validate (same format as submitblock)

Result

true

Examples

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

Bitcoin Cash Node Daemon version v27.0.1-6a03070

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.