New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image
btc

BTC

POST

GET

chevron-right

Last updated on January 1, 1970

1 min read

Method submitblocklight undefined ()
connect with JSON-RPC protocol

submitblocklight

info-circle-fill

Method not allowed

info-circle-fill

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

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://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"}'

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}
banner icon

Start Building with GetBlock RPCs for Free