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
[wallet] Rename 'decode' argument in gettransaction method to 'verbose'
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.
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