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

btc
Bitcoin (BTC)

Method: POST importprunedfunds

dropdown

方法 RPC importprunedfunds 例如 Bitcoin (BTC)

POST importprunedfunds

方法不允许

无需重新扫描即可导入资金。相应的地址或脚本必须事先包含在钱包中。旨在修剪钱包。最终用户负责导入额外的交易,这些交易随后花费导入的输出或在区块链中包含交易的点之后重新扫描。

Parameters

rawtransaction - 字符串,必填

为钱包中现有地址提供资金的十六进制原始交易

txoutproof - 字符串,必填

包含交易的 gettxoutproof 的十六进制输出

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


Response

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