⚡ We welcome businesses to test our enterprise-grade service

btg
Bitcoin Gold (BTG)

Method: POST submitheader

dropdown

方法 RPC submitheader 例如 Bitcoin Gold (BTG)

POST submitheader

Method not allowed

将给定的六边形解码为标题,并将其作为候选链提示(如果有效)提交。

当标头无效时扔。

Parameters

hexdata - 字符串,需要

十六进制编码的块标头数据

Request

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