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

bsv
Bitcoin-SV (BSV)

Method: POST pruneblockchain

dropdown

方法 RPC pruneblockchain 例如 Bitcoin-SV (BSV)

POST pruneblockchain

Method not allowed

PreuneBlockchain高度

Parameters

height - 数字,必需

块高度缩短。 可以设置为离散高度,或者到UNIX时分时间到块块,其块时间比提供的时间戳较长的时间至少为2小时。

Request

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