Parameters
- txidstringREQUIRED
The transaction id
- nnumericREQUIRED
Vout number
- include_mempoolboolean
default=true. Whether to include the mempool
Returns
- resultobject | null
Transaction output details, or null if the output is not found or already spent
- bestblockstring
The block hash at the tip of the chain
- confirmationsinteger
The number of confirmations received for the transaction
- valuenumber
The transaction value in BCH
- scriptPubKeyobject
A JSON object containing information about the PubKey script
- asmstring
The script public key in the form of string
- hexstring
The hexadecimal of the script
- reqSigsinteger
Number of required signatures
- typestring
The type of script, eg pubkeyhash, multisig
- addressesarray
A JSON array of Bitcoin Cash addresses
- coinbaseboolean
It is true if the transaction output belongs to a coinbase transaction otherwise it's false for all other transactions
- errorobject | null
JSON-RPC error object when the request failed, or null on success
- idinteger
The JSON-RPC request identifier
1{2"result": null,3"error": null,4"id": 15}
1{2"result": null,3"error": null,4"id": 15}