decoderawtransaction
Summary
Return a JSON object representing the serialized, hex-encoded transaction.
Description
Return a JSON object representing the serialized, hex-encoded transaction.
Arguments
hexstring(STR_HEX, required): The transaction hex stringiswitness(BOOL): Whether the transaction hex is a serialized witness transaction. If iswitness is not present, heuristic tests will be used in decoding. If true, only witness deserialization will be tried. If false, only non-witness deserialization will be tried. This boolean should reflect whether the transaction has inputs (e.g. fully valid, or on-chain transactions), if known by the caller.
Results
value(OBJ): No description.txid(STR_HEX): The transaction idhash(STR_HEX): The transaction hash (differs from txid for witness transactions)size(NUM): The serialized transaction sizevsize(NUM): The virtual transaction sizeweight(NUM): The transaction's weight; qbit fully counts witness dataversion(NUM): The versionlocktime(NUM_TIME): The lock timevin(ARR): No description.value(OBJ): No description.coinbase(STR_HEX, optional): The coinbase value (only if coinbase transaction)txid(STR_HEX, optional): The transaction id (if not coinbase transaction)vout(NUM, optional): The output number (if not coinbase transaction)scriptSig(OBJ, optional): The script (if not coinbase transaction)asm(STR): Disassembly of the signature scripthex(STR_HEX): The raw signature script bytes, hex-encoded
txinwitness(ARR, optional): No description.hex(STR_HEX): hex-encoded witness data (if any)
sequence(NUM): The script sequence number
vout(ARR): No description.value(OBJ): No description.value(STR_AMOUNT): The value in QBTn(NUM): indexscriptPubKey(OBJ): No description.asm(STR): Disassembly of the output scriptdesc(STR): Inferred descriptor for the outputhex(STR_HEX): The raw output script bytes, hex-encodedaddress(STR, optional): The qbit address (only if a well-defined address exists)type(STR): The type (one of: nonstandard, anchor, pubkey, pubkeyhash, scripthash, multisig, nulldata, witness_v0_scripthash, witness_v0_keyhash, witness_v1_taproot, witness_v2_p2mr, witness_unknown)
Examples
qbit-cli decoderawtransaction "hexstring"
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "decoderawtransaction", "params": ["hexstring"]}' -H 'content-type: application/json' http://127.0.0.1:8352/