gettransaction

Back to wallet

Wallet

Summary

Get detailed information about in-wallet transaction

Description

Get detailed information about in-wallet transaction

Arguments

  • txid (STR, required): The transaction id
  • include_watchonly (BOOL): (DEPRECATED) No longer used
  • verbose (BOOL): Whether to include a decoded field containing the decoded transaction (equivalent to RPC decoderawtransaction)

Results

  • value (OBJ): No description.
  • amount (STR_AMOUNT): The amount in QBT
  • fee (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 transaction
    • txid (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 QBT
    • label (STR, optional): A comment for the address/transaction, if any
    • vout (NUM): the vout value
    • fee (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 transaction
  • decoded (OBJ, optional): The decoded transaction (only present when verbose is passed)
    • value (ELISION): Equivalent to the RPC decoderawtransaction method, or the RPC getrawtransaction method when verbose is passed.
  • lastprocessedblock (OBJ): hash and height of the block this information was generated on
    • hash (STR_HEX): hash of the block this information was generated on
    • height (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/