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

bch
Bitcoin Cash (BCH)

Method: POST submitblocklight

dropdown

方法 RPC submitblocklight 例如 Bitcoin Cash (BCH)

POST submitblocklight

方法不允许

尝试根据先前对 getblocktemplatelight 的调用向网络提交新块。

有关完整规范,请参阅 doc 文件夹中的 getblocktemplatelight 规范。

Parameters

hexdata - 字符串,必填

要提交的十六进制编码块数据。该区块必须恰好有 1 个交易(coinbase)。附加交易(如果有)从灯模板中附加。

job_id - 字符串,必填

从中检索非 coinbase 交易的轻模板的标识符。该 job_id 必须从先前对 getblocktemplatelight 的调用中获得。

Request

curl --location --request POST 'https://bch.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"
}