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

btc
Bitcoin (BTC)

Method: POST submitheader

dropdown

方法 RPC submitheader 例如 Bitcoin (BTC)

POST submitheader

方法不允许

将给定的十六进制数据解码为标头,如果有效,则将其作为候选链提示提交。

标头无效时抛出。

Parameters

hexdata - 字符串,必填

十六进制编码的块头数据

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": "submitheader",
"params": [null],
"id": "getblock.io"}'


Response

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