You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #16185: gettransaction: add an argument to decode the transaction
9965940 doc: Add release note for the new gettransaction argument (darosior)
b8b3f04 tests: Add a new functional test for gettransaction (darosior)
7f3bb24 gettransaction: add an argument to decode the transaction (darosior)
Pull request description:
This PR adds a new parameter to the `gettransaction` call : `decode`. If set to `true`, it will add a new `decoded` field to the response. This mimics the behavior of `getrawtransaction`'s `verbose` argument to avoid using 2 calls if we want to decode a wallet transaction (`gettransaction` then `decoderawtransaction`).
Fix #16181 .
ACKs for top commit:
meshcollider:
re-utACK 9965940
Tree-SHA512: bcb6b4bd252b3488d6afc77659c499c2ad99fd58661eb24b6a2e17014c74f22e47fde70e00fedb4f4754915786622ad02483b2cf2c4dea0ab0eb4ac8276dbeee
The `gettransaction` RPC now accepts a third (boolean) argument `decode`. If set to `true`, a new `decoded` field will be added to the response containing the decoded transaction.
{"txid", RPCArg::Type::STR, RPCArg::Optional::NO, "The transaction id"},
1651
1651
{"include_watchonly", RPCArg::Type::BOOL, /* default */"true for watch-only wallets, otherwise false", "Whether to include watch-only addresses in balance calculation and details[]"},
1652
+
{"decode", RPCArg::Type::BOOL, /* default */"false", "Whether to add a field with the decoded transaction"},
0 commit comments