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

coins coins coins coins
/

Nervos Network (CKB)

ckb
Nervos Network (CKB)

Method: POST get_block_template

dropdown

# get_block_template example for Nervos Network (CKB)

POST get_block_template

Method not allowed

Returns block template for miners. Miners can assemble the new block from the template. The RPC is designed to allow miners to remove transactions and adding new transactions to the block.

Parameters

bytes_limit - uint64 | null

the max serialization size in bytes of the block. (Optional: the default is the consensus limit.)

proposals_limit - uint64 | null

the max count of proposals. (Optional: the default is the consensus limit.)

max_version - uint64 | null

the max block version. (Optional: the default is one configured in the current client version.)

Request

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


Response

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