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

Method: POST submitblock

dropdown

方法 RPC submitblock 例如 NEO

POST submitblock

Method not allowed

在NEO网络中广播一个新块。

Parameters

hex - 细绳

序列化块的基本64编码字符串。

Request

curl --location --request POST 'https://neo.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "submitblock",
"params": [null],
"id": "getblock.io"}'


Response

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