Home

gettxout

POST
https://bch.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns details about an unspent transaction output (UTXO) specified by transaction ID and output index.

Set the optional patterns parameter to true to have the scriptPubKey object additionally contain byteCodePattern, which describes the script's pattern fingerprint, its templated form and the data pushes extracted from it.

Body

application/json
jsonrpcstringrequired
idstringrequired
methodstringgettxoutrequired
paramsArray<string | integer | boolean>required

Parameters:

  1. txid (string, required) — The transaction ID.
  2. vout (integer, required) — The output index.
  3. include_mempool (boolean, optional, default: true) — Whether to include mempool transactions.
  4. patterns (boolean, optional, default: false) — If true, scriptPubKey additionally contains the byteCodePattern object.
Show child attributes
One of
string
integer
boolean

Response

200OK

UTXO details retrieved successfully

401Unauthorized

Unauthorized

500Internal Server Error

Internal Server Error