From 0173949446c790c85fa1c1bbebbb024387bfb924 Mon Sep 17 00:00:00 2001 From: Mike C Date: Wed, 9 Mar 2016 22:16:03 -0700 Subject: [PATCH] initial daemon-rpc.md commit. --- knowledge-base/developer-guides/daemon-rpc.md | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 knowledge-base/developer-guides/daemon-rpc.md diff --git a/knowledge-base/developer-guides/daemon-rpc.md b/knowledge-base/developer-guides/daemon-rpc.md new file mode 100644 index 00000000..00f7ca39 --- /dev/null +++ b/knowledge-base/developer-guides/daemon-rpc.md @@ -0,0 +1,68 @@ +--- +layout: static_page +title: "Wallet RPC documentation" +title-pre-kick: "How to " +title-kick: "Wallet RPC documentation " +title-post-kick: "" +kick-class: "green-kicks" +icon: "icon_client" +attribution: "" +--- + +## General Remarks + +This is a list of the bitmonerod daemon RPC calls, their inputs and outputs, and examples of each. Many RPC calls use the Daemon's JSON RPC interface, while others use their own interfaces. + +On this page, you will find examples of these RPC calls. + + +## JSON RPC Methods + +The majority of bitmonerod RPC calls use the daemon's `json_rpc` interface to request various bits of information. These methods all follow a similar structure, for example: + + IP=127.0.0.1 + PORT=18081 + METHOD="getblockheaderbyheight" + PARAMS="{\"height\":912345}" + curl \ + -X POST http://$IP:$PORT/json_rpc \ + -d '{"jsonrpc":"2.0","id":"0","method":"'$METHOD'","params":'"$PARAMS"'}' \ + -H 'Content-Type: application/json' + +Some methods include parameters, while others do not. Examples of each JSON RPC method follow. + +### getblockcount + +### on_getblockhash + +### getblocktemplate + +### submitblock + +### getlastblockheader + +### getblockheaderbyhash + +### getblockheaderbyheight + +### getblock + +### get_connections + +### get_info + +### hard_fork_info + +### setbans + +### getbans + +### flush_txpool + + +## Other Daemon RPC Calls + +Not all daemon RPC calls use the JSON_RPC interface. This section gives examples of these calls. + +### +