📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

/

Nervos Network (CKB)

ckb
Nervos Network (CKB)

Method: POST get_block_template

dropdown

方法 RPC get_block_template 例如 Nervos Network (CKB)

POST get_block_template

Method not allowed

返回矿工的块模板。 矿工可以从模板组装新块。 RPC旨在允许矿工删除交易并将新交易添加到块中。

Parameters

bytes_limit - Uint64 | 无效的

块的最大序列化大小。 (可选:默认值是共识限制。)

proposals_limit - Uint64 | 无效的

提案的最大计数。 (可选:默认值是共识限制。)

max_version - Uint64 | 无效的

最大块版。 (可选:默认值是当前客户端版本中配置的一个。)

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"
}