Parameters
- hexstringstringREQUIRED
The raw transaction hex string to decode
- iswitnessboolean
Optional boolean flag indicating whether the transaction hex is a serialized witness transaction (default: false)
Returns
- resultobject
The decoded transaction object
- txidstring
The transaction id
- hashstring
The transaction hash (differs from txid for witness transactions)
- versioninteger
The transaction version
- sizeinteger
The transaction size in bytes
- 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 signature script
- sequenceinteger
The script sequence number
- 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
- reqSigsinteger
Number of required signatures
- hexstring
The hex of the script's public key in string format
- addressesarray
Array of Bitcoin Cash addresses
- typestring
The type of script, e.g. pubkeyhash, multisig
- 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": "0e690d6655767c8b388e7403d13dc9ebe49b68e3bd46248c840544f9da87d1e8",4"hash": "0e690d6655767c8b388e7403d13dc9ebe49b68e3bd46248c840544f9da87d1e8",5"version": 1,6"size": 225,7"locktime": 0,8"vin": [9{10"txid": "e66c029a755d326f14cc32f485ea43e705ef59ed4a8061e8f47e681fbdefefea",11"vout": 1,12"scriptSig": {13"asm": "30440220718954e28983c875858b5a0094df4607ce2e7c6e9ffea47f3876792b01755c1202205e2adc7c32ff64aaef6d26045f96181e8741e560b6f3a8ef2f4ffd2892add656[ALL] 03142355370728640592109c3d2bf5592020a6b9226303c8bc98ab2ebcadf057ab",14"hex": "4730440220718954e28983c875858b5a0094df4607ce2e7c6e9ffea47f3876792b01755c1202205e2adc7c32ff64aaef6d26045f96181e8741e560b6f3a8ef2f4ffd2892add656012103142355370728640592109c3d2bf5592020a6b9226303c8bc98ab2ebcadf057ab"15},16"sequence": 429496729517}18],19"vout": [20{21"value": 0.4,22"n": 0,23"scriptPubKey": {24"asm": "OP_DUP OP_HASH160 fe7e0711287688b33b9a5c239336c4700db34e63 OP_EQUALVERIFY OP_CHECKSIG",25"hex": "76a914fe7e0711287688b33b9a5c239336c4700db34e6388ac",26"reqSigs": 1,27"type": "pubkeyhash",28"addresses": [29"bitcoincash:qrl8upc39pmg3vemnfwz8yekc3cqmv6wvvaw90pzy2"30]31}32},33{34"value": 48.9998184,35"n": 1,36"scriptPubKey": {37"asm": "OP_DUP OP_HASH160 af92ad98c7f77559f96430dfef2a6805b87b24f8 OP_EQUALVERIFY OP_CHECKSIG",38"hex": "76a914af92ad98c7f77559f96430dfef2a6805b87b24f888ac",39"reqSigs": 1,40"type": "pubkeyhash",41"addresses": [42"bitcoincash:qzhe9tvcclmh2k0evscdlme2dqzms7eylqhcjc69c7"43]44}45}46]47},48"error": null,49"id": 150}
1{2"result": {3"txid": "0e690d6655767c8b388e7403d13dc9ebe49b68e3bd46248c840544f9da87d1e8",4"hash": "0e690d6655767c8b388e7403d13dc9ebe49b68e3bd46248c840544f9da87d1e8",5"version": 1,6"size": 225,7"locktime": 0,8"vin": [9{10"txid": "e66c029a755d326f14cc32f485ea43e705ef59ed4a8061e8f47e681fbdefefea",11"vout": 1,12"scriptSig": {13"asm": "30440220718954e28983c875858b5a0094df4607ce2e7c6e9ffea47f3876792b01755c1202205e2adc7c32ff64aaef6d26045f96181e8741e560b6f3a8ef2f4ffd2892add656[ALL] 03142355370728640592109c3d2bf5592020a6b9226303c8bc98ab2ebcadf057ab",14"hex": "4730440220718954e28983c875858b5a0094df4607ce2e7c6e9ffea47f3876792b01755c1202205e2adc7c32ff64aaef6d26045f96181e8741e560b6f3a8ef2f4ffd2892add656012103142355370728640592109c3d2bf5592020a6b9226303c8bc98ab2ebcadf057ab"15},16"sequence": 429496729517}18],19"vout": [20{21"value": 0.4,22"n": 0,23"scriptPubKey": {24"asm": "OP_DUP OP_HASH160 fe7e0711287688b33b9a5c239336c4700db34e63 OP_EQUALVERIFY OP_CHECKSIG",25"hex": "76a914fe7e0711287688b33b9a5c239336c4700db34e6388ac",26"reqSigs": 1,27"type": "pubkeyhash",28"addresses": [29"bitcoincash:qrl8upc39pmg3vemnfwz8yekc3cqmv6wvvaw90pzy2"30]31}32},33{34"value": 48.9998184,35"n": 1,36"scriptPubKey": {37"asm": "OP_DUP OP_HASH160 af92ad98c7f77559f96430dfef2a6805b87b24f8 OP_EQUALVERIFY OP_CHECKSIG",38"hex": "76a914af92ad98c7f77559f96430dfef2a6805b87b24f888ac",39"reqSigs": 1,40"type": "pubkeyhash",41"addresses": [42"bitcoincash:qzhe9tvcclmh2k0evscdlme2dqzms7eylqhcjc69c7"43]44}45}46]47},48"error": null,49"id": 150}