⚡ We welcome businesses to test our enterprise-grade service

btc
Bitcoin (BTC)

Method: POST gettxout

dropdown

方法 RPC gettxout 例如 Bitcoin (BTC)

POST gettxout

返回有关未花费交易输出的详细信息。

Parameters

txid - 字符串,必填

交易标识

n - 数字,必填

票号

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

是否包含内存池。请注意,在内存池中花费的未花费输出不会出现。

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


Response

{
    "error": null,
    "id": "getblock.io",
    "result": null
}