diff options
author | Matthew Zipkin <pinheadmz@gmail.com> | 2024-06-06 10:25:48 -0400 |
---|---|---|
committer | Matthew Zipkin <pinheadmz@gmail.com> | 2024-06-07 09:26:55 -0400 |
commit | 391843b0297db03d71a8d88ab77609e2ad230bf2 (patch) | |
tree | 2e46338e53581a7aa0c6f5a823b36030facaacf7 /src/rpc/request.h | |
parent | d39bdf339772166a5545ae811e58b7764af093a8 (diff) | |
download | bitcoin-391843b0297db03d71a8d88ab77609e2ad230bf2.tar.xz |
bitcoin-cli: use json-rpc 2.0
Diffstat (limited to 'src/rpc/request.h')
-rw-r--r-- | src/rpc/request.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/request.h b/src/rpc/request.h index e47f90af86..9968426636 100644 --- a/src/rpc/request.h +++ b/src/rpc/request.h @@ -17,6 +17,7 @@ enum class JSONRPCVersion { V2 }; +/** JSON-RPC 2.0 request, only used in bitcoin-cli **/ UniValue JSONRPCRequestObj(const std::string& strMethod, const UniValue& params, const UniValue& id); UniValue JSONRPCReplyObj(UniValue result, UniValue error, std::optional<UniValue> id, JSONRPCVersion jsonrpc_version); UniValue JSONRPCError(int code, const std::string& message); |