bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/gettransaction
Wallet

gettransaction

Get detailed information about in-wallet transaction.

Parameters

txidstringREQUIRED
The transaction id
include_watchonlybooleanoptional
Include watch-only. Default: true for watch-only wallets
verbosebooleanoptional
Include decoded tx. Default: false

Returns

objectTransaction details

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"gettransaction","params":["txid"]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "amount": 0.50000000,
  "confirmations": 12,
  "blockhash": "00000000000000...",
  "blockheight": 840000,
  "txid": "a1075db55d...",
  "time": 1713571767,
  "details": [...]
}
← Previous
getnewaddress
Next →
getwalletinfo

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegetnewaddressgetwalletinfo

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗