⚡ We welcome businesses to test our enterprise-grade service

btc
Bitcoin (BTC)

Method: POST invalidateblock

dropdown

方法 RPC invalidateblock 例如 Bitcoin (BTC)

POST invalidateblock

方法不允许

永久标记一个区块为无效,就好像它违反了共识规则一样。

Parameters

blockhash - 字符串,必填

要标记为无效的块的哈希值

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


Response

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