⚡ We welcome businesses to test our enterprise-grade service

bch
Bitcoin Cash (BCH)

Method: POST rescanblockchain

dropdown

方法 RPC rescanblockchain 例如 Bitcoin Cash (BCH)

POST rescanblockchain

方法不允许

重新扫描本地区块链以进行钱包相关交易。

说明 使用“getwalletinfo”查询扫描进度。

Parameters

start_height - 数字,可选,默认=0

重新扫描应该开始的块高度

stop_height - 数字,可选

应该扫描的最后一个块高度。如果没有提供,它将在此调用的返回时间重新扫描到提示。

Request

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


Response

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