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

bsv
Bitcoin-SV (BSV)

Method: POST listunspent

dropdown

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

POST listunspent

方法不允许

返回具有 minconf 和 maxconf(含)确认之间的未花费交易输出数组。

可选择过滤以仅包含支付给指定地址的 txout。

Parameters

minconf - 数字,可选,默认=1

要过滤的最少确认数

maxconf - 数字,可选,默认值=9999999

要过滤的最大确认数

addresses - json 数组,可选,默认=空数组

要过滤的比特币地址

include_unsafe - 布尔值,可选,默认=真

包括花费不安全的产出。请参阅下面“安全”属性的说明。

query_options - json 对象,可选

带有查询选项的 JSON

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


Response

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