Parameters
- txidstringREQUIRED
The transaction id
- nnumericREQUIRED
Vout number
- include_mempoolboolean
default=true. Whether to include the mempool
- patternsboolean
When true, include byteCodePattern details for script outputs in verbose responses.
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
- byteCodePatternobject
Script pattern details, present when patterns is true and verbose output includes this script.
- fingerprintstring
Fingerprint of the script pattern.
- patternstring
Hexadecimal byte-code pattern.
- patternAsmstring
Assembly representation of the pattern.
- dataarray
Data values extracted from the script pattern.
- 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": {3"bestblock": "000000000000000001d24aadaee43a8cc134fa46da2ca964c8a961542be129eb",4"confirmations": 978894,5"value": 50,6"scriptPubKey": {7"asm": "047211a824f55b505228e4c3d5194c1fcfaa15a456abdf37f9b9d97a4040afc073dee6c89064984f03385237d92167c13e236446b417ab79a0fcae412ae3316b77 OP_CHECKSIG",8"hex": "41047211a824f55b505228e4c3d5194c1fcfaa15a456abdf37f9b9d97a4040afc073dee6c89064984f03385237d92167c13e236446b417ab79a0fcae412ae3316b77ac",9"reqSigs": 1,10"type": "pubkey",11"addresses": [12"bitcoincash:qze5ql2tf50u4plmjv9tu0axc2aw6mn0mqzvqsva3d"13],14"byteCodePattern": {15"fingerprint": "9bc6bf500d23c135ed2add8ccee8d1c83fc9170b3bc736e25fe62e6bcab2fad5",16"pattern": "51ac",17"patternAsm": "1 OP_CHECKSIG",18"data": [19"047211a824f55b505228e4c3d5194c1fcfaa15a456abdf37f9b9d97a4040afc073dee6c89064984f03385237d92167c13e236446b417ab79a0fcae412ae3316b77"20]21}22},23"coinbase": true24},25"error": null,26"id": 127}
1{2"result": {3"bestblock": "000000000000000001d24aadaee43a8cc134fa46da2ca964c8a961542be129eb",4"confirmations": 978894,5"value": 50,6"scriptPubKey": {7"asm": "047211a824f55b505228e4c3d5194c1fcfaa15a456abdf37f9b9d97a4040afc073dee6c89064984f03385237d92167c13e236446b417ab79a0fcae412ae3316b77 OP_CHECKSIG",8"hex": "41047211a824f55b505228e4c3d5194c1fcfaa15a456abdf37f9b9d97a4040afc073dee6c89064984f03385237d92167c13e236446b417ab79a0fcae412ae3316b77ac",9"reqSigs": 1,10"type": "pubkey",11"addresses": [12"bitcoincash:qze5ql2tf50u4plmjv9tu0axc2aw6mn0mqzvqsva3d"13],14"byteCodePattern": {15"fingerprint": "9bc6bf500d23c135ed2add8ccee8d1c83fc9170b3bc736e25fe62e6bcab2fad5",16"pattern": "51ac",17"patternAsm": "1 OP_CHECKSIG",18"data": [19"047211a824f55b505228e4c3d5194c1fcfaa15a456abdf37f9b9d97a4040afc073dee6c89064984f03385237d92167c13e236446b417ab79a0fcae412ae3316b77"20]21}22},23"coinbase": true24},25"error": null,26"id": 127}