Parameters
- txidstringREQUIRED
The transaction id
- verbosityinteger
0 returns raw hexadecimal transaction data; 1 returns a decoded transaction; 2 also includes input values and previous output scripts.
- blockhashstring
The block in which to look for the transaction
- patternsboolean
Include byteCodePattern details for input and output scripts in decoded responses.
Returns
- (for verbosity = 0):object
Response when
verbosityis0. The JSON-RPC body includesresult(hex-encoded serialized transaction),error, andid.- resultstring
The serialized, hex-encoded transaction data
- errorobject | null
JSON-RPC error object when the request failed, or null on success
- idinteger
The JSON-RPC request identifier
- (for verbosity = 1 or 2):object
Response when
verbosityis1or2. The JSON-RPC body includesresult(decoded transaction object),error, andid.- resultobject
The transaction object
- txidstring
The transaction id
- hashstring
The transaction hash
- versioninteger
The transaction version
- sizeinteger
The transaction size
- locktimeinteger
The transaction locktime
- vinarray
A JSON array. Each element in the array serves as a transaction's input vector (vin).
- 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 witness data
- 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.
- valuenumber
Previous output value in BCH, present at verbosity 2.
- scriptPubKeyobject
Previous output locking script, present at verbosity 2.
- asmstring
Assembly representation of the previous output script.
- hexstring
Hexadecimal previous output script.
- typestring
Previous output script type.
- addressstring
Address represented by the previous output script, when available.
- 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.
- sequenceinteger
The sequence number of the script
- voutarray
A JSON array containing tx information
- valuenumber
The value in BTC
- 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
- reqSigsinteger
Number of required signatures
- typestring
The type of script, e.g. pubkeyhash, multisig
- addressesarray
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.
- feenumber
Transaction fee in BCH for non-coinbase transactions at verbosity 2.
- hexstring
The serialized, hex-encoded transaction data
- blockhashstring
The block hash
- confirmationsinteger
The number of confirmations
- timeinteger
The block time expressed in UNIX epoch time
- blocktimeinteger
Same as time
- in_active_chainboolean
Whether the transaction is in the active chain, when blockhash is supplied.
- errorobject | null
JSON-RPC error object when the request failed, or null on success
- idinteger
The JSON-RPC request identifier
1{2"result": {3"txid": "a7cf70e0152b45651928ef3feb381d21e94e8bd4c53757cabf485eaff58125ed",4"hash": "a7cf70e0152b45651928ef3feb381d21e94e8bd4c53757cabf485eaff58125ed",5"version": 1,6"size": 374,7"locktime": 0,8"vin": [9{10"txid": "8af0cad7bbd319d945c00c68bc7a43f0e43d142a36bba7726b68633f0745553b",11"vout": 0,12"scriptSig": {13"asm": "3045022100b471cc71a02556bb1f14298c3b7bb6019e408c78bd6512a1bccfbda30b53cf5302200d3892b80c03fa3d75f67a0e69d23771c33773100dfe6bed0748ceca94bd916b[ALL|FORKID] 02b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e",14"hex": "483045022100b471cc71a02556bb1f14298c3b7bb6019e408c78bd6512a1bccfbda30b53cf5302200d3892b80c03fa3d75f67a0e69d23771c33773100dfe6bed0748ceca94bd916b412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e"15},16"sequence": 429496729517},18{19"txid": "2d300dd7b49283c105112011750f2184b858002863edc20ae36590e1f71a22db",20"vout": 1,21"scriptSig": {22"asm": "3045022100c44369fabee6fd81cdd75b14891e00ff7cd438502bec13112897b483509d7c4102201a571fc92dc6fff59a0216169acf3794d1bb63be1e03a1d1f7fe1ce6a605bc3c[ALL|FORKID] 02b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e",23"hex": "483045022100c44369fabee6fd81cdd75b14891e00ff7cd438502bec13112897b483509d7c4102201a571fc92dc6fff59a0216169acf3794d1bb63be1e03a1d1f7fe1ce6a605bc3c412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e"24},25"sequence": 429496729526}27],28"vout": [29{30"value": 0.00320253,31"n": 0,32"scriptPubKey": {33"asm": "OP_DUP OP_HASH160 c62b2b5e1e96415634c02823239309e955b64828 OP_EQUALVERIFY OP_CHECKSIG",34"hex": "76a914c62b2b5e1e96415634c02823239309e955b6482888ac",35"reqSigs": 1,36"type": "pubkeyhash",37"addresses": [38"bitcoincash:qrrzk267r6tyz435cq5zxgunp854tdjg9qvjfwd0vy"39]40}41},42{43"value": 0.00318222,44"n": 1,45"scriptPubKey": {46"asm": "OP_DUP OP_HASH160 612ff813f1a3f10481975a0c43c480e67bbcc013 OP_EQUALVERIFY OP_CHECKSIG",47"hex": "76a914612ff813f1a3f10481975a0c43c480e67bbcc01388ac",48"reqSigs": 1,49"type": "pubkeyhash",50"addresses": [51"bitcoincash:qpsjl7qn7x3lzpypjadqcs7ysrn8h0xqzvnx9vjn2r"52]53}54}55],56"hex": "01000000023b5545073f63686b72a7bb362a143de4f0437abc680cc045d919d3bbd7caf08a000000006b483045022100b471cc71a02556bb1f14298c3b7bb6019e408c78bd6512a1bccfbda30b53cf5302200d3892b80c03fa3d75f67a0e69d23771c33773100dfe6bed0748ceca94bd916b412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523effffffffdb221af7e19065e30ac2ed63280058b884210f7511201105c18392b4d70d302d010000006b483045022100c44369fabee6fd81cdd75b14891e00ff7cd438502bec13112897b483509d7c4102201a571fc92dc6fff59a0216169acf3794d1bb63be1e03a1d1f7fe1ce6a605bc3c412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523effffffff02fde20400000000001976a914c62b2b5e1e96415634c02823239309e955b6482888ac0edb0400000000001976a914612ff813f1a3f10481975a0c43c480e67bbcc01388ac00000000",57"blockhash": "000000000000000001709ea8074b4df1342f49483f2b2fd52131bc309ffcdc91",58"confirmations": 22998,59"time": 1756386098,60"blocktime": 175638609861},62"error": null,63"id": 164}
1{2"result": {3"txid": "a7cf70e0152b45651928ef3feb381d21e94e8bd4c53757cabf485eaff58125ed",4"hash": "a7cf70e0152b45651928ef3feb381d21e94e8bd4c53757cabf485eaff58125ed",5"version": 1,6"size": 374,7"locktime": 0,8"vin": [9{10"txid": "8af0cad7bbd319d945c00c68bc7a43f0e43d142a36bba7726b68633f0745553b",11"vout": 0,12"scriptSig": {13"asm": "3045022100b471cc71a02556bb1f14298c3b7bb6019e408c78bd6512a1bccfbda30b53cf5302200d3892b80c03fa3d75f67a0e69d23771c33773100dfe6bed0748ceca94bd916b[ALL|FORKID] 02b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e",14"hex": "483045022100b471cc71a02556bb1f14298c3b7bb6019e408c78bd6512a1bccfbda30b53cf5302200d3892b80c03fa3d75f67a0e69d23771c33773100dfe6bed0748ceca94bd916b412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e"15},16"sequence": 429496729517},18{19"txid": "2d300dd7b49283c105112011750f2184b858002863edc20ae36590e1f71a22db",20"vout": 1,21"scriptSig": {22"asm": "3045022100c44369fabee6fd81cdd75b14891e00ff7cd438502bec13112897b483509d7c4102201a571fc92dc6fff59a0216169acf3794d1bb63be1e03a1d1f7fe1ce6a605bc3c[ALL|FORKID] 02b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e",23"hex": "483045022100c44369fabee6fd81cdd75b14891e00ff7cd438502bec13112897b483509d7c4102201a571fc92dc6fff59a0216169acf3794d1bb63be1e03a1d1f7fe1ce6a605bc3c412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523e"24},25"sequence": 429496729526}27],28"vout": [29{30"value": 0.00320253,31"n": 0,32"scriptPubKey": {33"asm": "OP_DUP OP_HASH160 c62b2b5e1e96415634c02823239309e955b64828 OP_EQUALVERIFY OP_CHECKSIG",34"hex": "76a914c62b2b5e1e96415634c02823239309e955b6482888ac",35"reqSigs": 1,36"type": "pubkeyhash",37"addresses": [38"bitcoincash:qrrzk267r6tyz435cq5zxgunp854tdjg9qvjfwd0vy"39]40}41},42{43"value": 0.00318222,44"n": 1,45"scriptPubKey": {46"asm": "OP_DUP OP_HASH160 612ff813f1a3f10481975a0c43c480e67bbcc013 OP_EQUALVERIFY OP_CHECKSIG",47"hex": "76a914612ff813f1a3f10481975a0c43c480e67bbcc01388ac",48"reqSigs": 1,49"type": "pubkeyhash",50"addresses": [51"bitcoincash:qpsjl7qn7x3lzpypjadqcs7ysrn8h0xqzvnx9vjn2r"52]53}54}55],56"hex": "01000000023b5545073f63686b72a7bb362a143de4f0437abc680cc045d919d3bbd7caf08a000000006b483045022100b471cc71a02556bb1f14298c3b7bb6019e408c78bd6512a1bccfbda30b53cf5302200d3892b80c03fa3d75f67a0e69d23771c33773100dfe6bed0748ceca94bd916b412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523effffffffdb221af7e19065e30ac2ed63280058b884210f7511201105c18392b4d70d302d010000006b483045022100c44369fabee6fd81cdd75b14891e00ff7cd438502bec13112897b483509d7c4102201a571fc92dc6fff59a0216169acf3794d1bb63be1e03a1d1f7fe1ce6a605bc3c412102b4eb67413b4026a6170300fe6f8dcae48fb17a571dfd2721043e0af07284523effffffff02fde20400000000001976a914c62b2b5e1e96415634c02823239309e955b6482888ac0edb0400000000001976a914612ff813f1a3f10481975a0c43c480e67bbcc01388ac00000000",57"blockhash": "000000000000000001709ea8074b4df1342f49483f2b2fd52131bc309ffcdc91",58"confirmations": 22998,59"time": 1756386098,60"blocktime": 175638609861},62"error": null,63"id": 164}