gettransaction
Wallet
Summary
Get detailed information about in-wallet transaction
Description
Get detailed information about in-wallet transaction
Arguments
txid(STR, required): The transaction idinclude_watchonly(BOOL): (DEPRECATED) No longer usedverbose(BOOL): Whether to include adecodedfield containing the decoded transaction (equivalent to RPC decoderawtransaction)
Results
value(OBJ): No description.amount(STR_AMOUNT): The amount in QBTfee(STR_AMOUNT, optional): The amount of the fee in QBT. This is negative and only available for the 'send' category of transactions.confirmations(NUM): The number of confirmations for the transaction. Negative confirmations means the transaction conflicted that many blocks ago.generated(BOOL, optional): Only present if the transaction's only input is a coinbase one.trusted(BOOL, optional): Whether we consider the transaction to be trusted and safe to spend from. Only present when the transaction has 0 confirmations (or negative confirmations, if conflicted).blockhash(STR_HEX, optional): The block hash containing the transaction.blockheight(NUM, optional): The block height containing the transaction.blockindex(NUM, optional): The index of the transaction in the block that includes it.blocktime(NUM_TIME, optional): The block time expressed in UNIX epoch time.txid(STR_HEX): The transaction id.wtxid(STR_HEX): The hash of serialized transaction, including witness data.walletconflicts(ARR): Confirmed transactions that have been detected by the wallet to conflict with this transaction.txid(STR_HEX): The transaction id.
replaced_by_txid(STR_HEX, optional): Only if 'category' is 'send'. The txid if this tx was replaced.replaces_txid(STR_HEX, optional): Only if 'category' is 'send'. The txid if this tx replaces another.mempoolconflicts(ARR): Transactions in the mempool that directly conflict with either this transaction or an ancestor transactiontxid(STR_HEX): The transaction id.
to(STR, optional): If a comment to is associated with the transaction.time(NUM_TIME): The transaction time expressed in UNIX epoch time.timereceived(NUM_TIME): The time received expressed in UNIX epoch time.comment(STR, optional): If a comment is associated with the transaction, only present if not empty.bip125-replaceable(STR): ("yes|no|unknown") Whether this transaction signals BIP125 replaceability or has an unconfirmed ancestor signaling BIP125 replaceability. May be unknown for unconfirmed transactions not in the mempool because their unconfirmed ancestors are unknown.parent_descs(ARR, optional): Only if 'category' is 'received'. List of parent descriptors for the output script of this coin.desc(STR): The descriptor string.
details(ARR): No description.value(OBJ): No description.address(STR, optional): The qbit address involved in the transaction.category(STR): The transaction category. "send" Transactions sent. "receive" Non-coinbase transactions received. "generate" Coinbase transactions received with more than 100 confirmations. "immature" Coinbase transactions received with 100 or fewer confirmations. "orphan" Orphaned coinbase transactions received.amount(STR_AMOUNT): The amount in QBTlabel(STR, optional): A comment for the address/transaction, if anyvout(NUM): the vout valuefee(STR_AMOUNT, optional): The amount of the fee in QBT. This is negative and only available for the 'send' category of transactions.abandoned(BOOL): 'true' if the transaction has been abandoned (inputs are respendable).parent_descs(ARR, optional): Only if 'category' is 'received'. List of parent descriptors for the output script of this coin.desc(STR): The descriptor string.
hex(STR_HEX): Raw data for transactiondecoded(OBJ, optional): The decoded transaction (only present whenverboseis passed)value(ELISION): Equivalent to the RPC decoderawtransaction method, or the RPC getrawtransaction method whenverboseis passed.
lastprocessedblock(OBJ): hash and height of the block this information was generated onhash(STR_HEX): hash of the block this information was generated onheight(NUM): height of the block this information was generated on
Examples
qbit-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
qbit-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d" true
qbit-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d" false true
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "gettransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"]}' -H 'content-type: application/json' http://127.0.0.1:8352/