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

btg
Bitcoin Gold (BTG)

Method: POST listunspent

dropdown

方法 RPC listunspent 例如 Bitcoin Gold (BTG)

POST listunspent

Method not allowed

在MinConf和MaxConf(包含)确认之间返回无需交易输出的数组。

可选的过滤以仅包括付款给指定地址的TXOUT。

Parameters

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

过滤的最低确认

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

过滤的最大确认

addresses - JSON数组,可选,默认值=空数组

比特币地址要过滤

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

包括不安全的输出。 请参阅下面的“安全”属性的描述。

query_options - JSON对象,可选

带查询选项的JSON

Request

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