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

btc
Bitcoin (BTC)

Method: POST pruneblockchain

dropdown

方法 RPC pruneblockchain 例如 Bitcoin (BTC)

POST pruneblockchain

方法不允许

修剪区块链高度

Parameters

height - 数字,必填

要修剪的块高度。可以设置为离散高度,或设置为 UNIX 纪元时间以修剪块时间至少比提供的时间戳早 2 小时的块。

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


Response

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