⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
Bitcoin (BTC)

Method: POST submitblocklight


# submitblocklight example for Bitcoin (BTC)

POST submitblocklight

Method not allowed

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.


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.


curl --location --request POST 'https://btc.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "submitblocklight",
"params": [null, null],
"id": "getblock.io"}'


    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"