submitblocklight {disallowed} - Bitcoin Cash
Example code for the submitblocklight {disallowed} json-rpc method. Сomplete guide on how to use submitblocklight {disallowed} json-rpc in GetBlock.io Web3 documentation.
Parameters
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.
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.
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/'
--header 'Content-Type: application/json'
--data-raw '{"jsonrpc": "2.0",
"method": "submitblocklight",
"params": [null, null],
"id": "getblock.io"}'
Response
{
"result": "null",
"id": "getblock.io",
"status_code": 405,
"message": "Method not allowed"
}
Last updated