⚡ We welcome businesses to test our enterprise-grade service

dgb
DigiByte (DGB)

Method: POST submitheader

dropdown

方法 RPC submitheader 例如 DigiByte (DGB)

POST submitheader

Method not allowed

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

当标头无效时扔。

Parameters

hexdata - 字符串,需要

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

Request

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