diff options
author | darosior <darosior@protonmail.com> | 2019-06-11 00:42:50 +0200 |
---|---|---|
committer | darosior <darosior@protonmail.com> | 2019-08-30 11:38:49 +0200 |
commit | 7f3bb247a811582d1aa4805d8e601c19808dc7ba (patch) | |
tree | 6643252ba3e9c8d04b428f869253faf3ef331e96 /src/rpc | |
parent | d8fc9979130a268cf55b12c223b20fd7d4b9f67f (diff) |
gettransaction: add an argument to decode the transaction
This adds a new boolean parameter 'decode' to the gettransaction call, which, if set to true, add a 'decoded' field to the result containing the decoded transaction
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/client.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp index 3cd661e067..93fca5a6de 100644 --- a/src/rpc/client.cpp +++ b/src/rpc/client.cpp @@ -85,6 +85,7 @@ static const CRPCConvertParam vRPCConvertParams[] = { "getblockheader", 1, "verbose" }, { "getchaintxstats", 0, "nblocks" }, { "gettransaction", 1, "include_watchonly" }, + { "gettransaction", 2, "decode" }, { "getrawtransaction", 1, "verbose" }, { "createrawtransaction", 0, "inputs" }, { "createrawtransaction", 1, "outputs" }, |