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 #16866: wallet: Rename 'decode' argument in gettransaction method to 'verbose'
7dee8f4 [wallet] Rename 'decode' argument in gettransaction method to 'verbose' (John Newbery)
Pull request description:
This makes the RPC method consistent with other RPC methods that have a
'verbose' option.
Change the name of the return object from 'decoded' to details.
Update help text.
ACKs for top commit:
promag:
ACK 7dee8f4.
meshcollider:
Code review ACK 7dee8f4
0xB10C:
ACK 7dee8f4: reviewed code
Tree-SHA512: a3a62265c8e6e914591f3b3b9f9dd4f42240dc8dab9cbac6ed8d8b8319b6cc847db2ad1689d5440c162e0698f31e39fc6b868ed918b2f62879d61b9865cae66b
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.
3
+
The `gettransaction` RPC now accepts a third (boolean) argument `verbose`. If set to `true`, a new `details` field will be added to the response containing additional transaction details.
{"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"},
1652
+
{"verbose", RPCArg::Type::BOOL, /* default */"false", "Whether to add a field with additional transaction details"},
"\"hex\" : \"data\" (string) Raw data for transaction\n"
1688
-
"\"decoded\" : transaction (json object) Optional, the decoded transaction\n"
1688
+
"\"details\" : transaction (json object) Optional, additional transaction details. This object contains the same transaction details as the `getrawtransaction` RPC method\n"
0 commit comments