⚡ We welcome businesses to test our enterprise-grade service

bsv
Bitcoin-SV (BSV)

Method: POST gettxout

dropdown

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

POST gettxout

返回有关未用事务输出的详细信息。

Parameters

txid - 要求串

交易ID

n - 数字,必需

Vout号码

include_mempool - 布尔,可选,默认= true

是否包括Mempool。 请注意,在Mempool中花费的未用输出不会出现。

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


Response

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