Parameters
- txidstringREQUIRED
The transaction id
- verboseinteger
(default: 0) A numeric parameter that can take one of the following values: '0' for hex-encoded data, '1' for JSON object
- blockhashstring
The block in which to look for the transaction
Returns
- resultstring | object
Hex-encoded transaction when verbose is 0, or a JSON transaction object when verbose is 1
- in_active_chainboolean
Whether specified block is in the active chain or not (only present with explicit 'blockhash' argument)
- hexstring
The serialized, hex-encoded data for 'txid'
- heightinteger
The block height containing the transaction
- confirmationsinteger
The number of confirmed transaction in the block
- vinarray
A JSON array. Each element in the array serves as a transaction's input vector (vin).
- coinbasestring
The coinbase data (for coinbase transactions)
- sequenceinteger
The sequence number of the script
- txidstring
The transaction id
- voutinteger
The output number
- scriptSigobject
The script's signature
- asmstring
The script's public key in the form of a string
- hexstring
The hex-encoded script data
- voutarray
A JSON array containing tx output information
- valuenumber
The value in ZEC
- valueZatinteger
The value in zatoshis
- ninteger
The output index
- scriptPubKeyobject
A JSON object containing information about the PubKey script
- asmstring
The script public key in the form of string
- hexstring
The hex of the script's public key in string format
- typestring
The type of script, e.g. pubkeyhash, multisig, scripthash
- addressesarray
The Zcash addresses
- strstring
The Zcash address
- vShieldedSpendarray
An array of Sapling shielded spend descriptions
- vShieldedOutputarray
An array of Sapling shielded output descriptions
- vjoinsplitarray
An array of Sprout joinsplit descriptions
- orchardobject
Orchard transaction data
- actionsarray
An array of Orchard actions
- valueBalancenumber
The net value of Orchard pool changes in ZEC
- valueBalanceZatinteger
The net value of Orchard pool changes in zatoshis
- valueBalancenumber
The net value of Sapling pool changes in ZEC
- valueBalanceZatinteger
The net value of Sapling pool changes in zatoshis
- sizeinteger
The transaction size
- timeinteger
Same as 'blocktime'
- txidstring
The transaction id
- overwinteredboolean
Whether the transaction uses the Overwinter format
- versioninteger
The transaction version
- locktimeinteger
The transaction locktime
- blockhashstring
The block hash
- blocktimeinteger
The block time expressed in UNIX epoch time
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"in_active_chain": true,6"hex": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0402e80300ffffffff029017fb0200000000232103d2b11b34418e65f8358fb89bee21432b6505eb860614560ce7180fa362f8d965ac20bcbe000000000017a9147d46a730d31f97b1930d3368a967c309bd4d136a8700000000",7"height": 1000,8"confirmations": 3322590,9"vin": [10{11"coinbase": "02e80300",12"sequence": 429496729513}14],15"vout": [16{17"value": 0.5001,18"valueZat": 50010000,19"n": 0,20"scriptPubKey": {21"asm": "03d2b11b34418e65f8358fb89bee21432b6505eb860614560ce7180fa362f8d965 OP_CHECKSIG",22"hex": "2103d2b11b34418e65f8358fb89bee21432b6505eb860614560ce7180fa362f8d965ac",23"type": "pubkey"24}25},26{27"value": 0.125,28"valueZat": 12500000,29"n": 1,30"scriptPubKey": {31"asm": "OP_HASH160 7d46a730d31f97b1930d3368a967c309bd4d136a OP_EQUAL",32"hex": "a9147d46a730d31f97b1930d3368a967c309bd4d136a87",33"reqSigs": 1,34"type": "scripthash",35"addresses": [36"t3Vz22vK5z2LcKEdg16Yv4FFneEL1zg9ojd"37]38}39}40],41"vShieldedSpend": [],42"vShieldedOutput": [],43"vjoinsplit": [],44"orchard": {45"actions": [],46"valueBalance": 0,47"valueBalanceZat": 048},49"valueBalance": 0,50"valueBalanceZat": 0,51"size": 131,52"time": 1477750705,53"txid": "2a03a4110c62047af28a44ab78ec9af9d020c9b8128051b46d89c22cd34777d5",54"overwintered": false,55"version": 1,56"locktime": 0,57"blockhash": "0000000b70480327694608408728c65c1f1a300bfe705b01baca0f5504092e1b",58"blocktime": 147775070559}60}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"in_active_chain": true,6"hex": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0402e80300ffffffff029017fb0200000000232103d2b11b34418e65f8358fb89bee21432b6505eb860614560ce7180fa362f8d965ac20bcbe000000000017a9147d46a730d31f97b1930d3368a967c309bd4d136a8700000000",7"height": 1000,8"confirmations": 3322590,9"vin": [10{11"coinbase": "02e80300",12"sequence": 429496729513}14],15"vout": [16{17"value": 0.5001,18"valueZat": 50010000,19"n": 0,20"scriptPubKey": {21"asm": "03d2b11b34418e65f8358fb89bee21432b6505eb860614560ce7180fa362f8d965 OP_CHECKSIG",22"hex": "2103d2b11b34418e65f8358fb89bee21432b6505eb860614560ce7180fa362f8d965ac",23"type": "pubkey"24}25},26{27"value": 0.125,28"valueZat": 12500000,29"n": 1,30"scriptPubKey": {31"asm": "OP_HASH160 7d46a730d31f97b1930d3368a967c309bd4d136a OP_EQUAL",32"hex": "a9147d46a730d31f97b1930d3368a967c309bd4d136a87",33"reqSigs": 1,34"type": "scripthash",35"addresses": [36"t3Vz22vK5z2LcKEdg16Yv4FFneEL1zg9ojd"37]38}39}40],41"vShieldedSpend": [],42"vShieldedOutput": [],43"vjoinsplit": [],44"orchard": {45"actions": [],46"valueBalance": 0,47"valueBalanceZat": 048},49"valueBalance": 0,50"valueBalanceZat": 0,51"size": 131,52"time": 1477750705,53"txid": "2a03a4110c62047af28a44ab78ec9af9d020c9b8128051b46d89c22cd34777d5",54"overwintered": false,55"version": 1,56"locktime": 0,57"blockhash": "0000000b70480327694608408728c65c1f1a300bfe705b01baca0f5504092e1b",58"blocktime": 147775070559}60}