Commit 8aab27f5 authored by Aviator's avatar Aviator 💬

[RPC] - Added second Parameter getrawtransaction

You can use now
getrawtransaction "hash" "true/false"
true false will toggle between HEX or Json Format as return .Before the explorer always queried the hex and than call the decoderawtransaction function this should save that step.
parent 1eaab151
...@@ -75,6 +75,7 @@ static const CRPCConvertParam vRPCConvertParams[] = ...@@ -75,6 +75,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{"getblockheader", 1}, {"getblockheader", 1},
{"gettransaction", 1}, {"gettransaction", 1},
{"getrawtransaction", 1}, {"getrawtransaction", 1},
{"getrawtransaction", 1},
{"createrawtransaction", 0}, {"createrawtransaction", 0},
{"createrawtransaction", 1}, {"createrawtransaction", 1},
{"signrawtransaction", 1}, {"signrawtransaction", 1},
......
...@@ -175,7 +175,7 @@ Value getrawtransaction(const Array& params, bool fHelp) ...@@ -175,7 +175,7 @@ Value getrawtransaction(const Array& params, bool fHelp)
bool fVerbose = false; bool fVerbose = false;
if (params.size() > 1) if (params.size() > 1)
fVerbose = (params[1].get_int() != 0); fVerbose = (params[1].get_bool() != 0);
CTransaction tx; CTransaction tx;
uint256 hashBlock = 0; uint256 hashBlock = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment