gettxout

Returns details about an unspent transaction output.

Arguments:

  1. "txid" (string, required) The transaction id
  2. "n" (numeric, required) vout number
  3. "include_mempool" (boolean, optional) Whether to include the mempool. Default: true. Note that an unspent output that is spent in the mempool won't appear.

Request

curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
    -X POST \
    -H 'x-amberdata-blockchain-id: bitcoin-mainnet' \
    -d '{"jsonrpc":"2.0","id":1,"method":"gettxout","params":["512122116d8995293482628319a2ef9489e0be81bf4d6db309627ce529d1320b",0]}'

Response

{
    "result": null,
    "error": null,
    "id": 1
}