API/Daemon/json rpc: Difference between revisions
Jump to navigation
Jump to search
m (Mika moved page json rpc to API/Daemon/json rpc: json_rpc is too generic term) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:json_rpc}} | {{DISPLAYTITLE:API/Daemon/json_rpc}} | ||
== Node daemon JSON RPC methods == | == Node daemon JSON RPC methods == | ||
* [[f_blocks_list_json]] | * [[f_blocks_list_json]] | ||
Line 15: | Line 15: | ||
* [[getblockheaderbyheight]] | * [[getblockheaderbyheight]] | ||
* [[getalternatechains]] | * [[getalternatechains]] | ||
== Usage == | |||
=== Using cURL === | |||
* <nowiki>curl -X POST http://127.0.0.1:33888/json_rpc -H 'Content-Type: application/json-rpc' -d '{"jsonrpc": "2.0", "method": "getcurrencyid", "params": {}, "id": "1"}'</nowiki> | |||
* <nowiki>curl -X POST http://127.0.0.1:33888/json_rpc -H 'Content-Type: application/json-rpc' -d '{"jsonrpc": "2.0", "method": "getblockheaderbyheight", "params": {"height" : 0}, "id": "1"}'</nowiki> |
Latest revision as of 12:46, 24 March 2020
Node daemon JSON RPC methods
- f_blocks_list_json
- f_block_json
- f_transaction_json
- f_pool_transaction_json
- f_on_transactions_pool_json
- getblockcount
- on_getblockhash
- getblocktemplate
- getcurrencyid
- submitblock
- getlastblockheader
- getblockheaderbyhash
- getblockheaderbyheight
- getalternatechains
Usage
Using cURL
- curl -X POST http://127.0.0.1:33888/json_rpc -H 'Content-Type: application/json-rpc' -d '{"jsonrpc": "2.0", "method": "getcurrencyid", "params": {}, "id": "1"}'
- curl -X POST http://127.0.0.1:33888/json_rpc -H 'Content-Type: application/json-rpc' -d '{"jsonrpc": "2.0", "method": "getblockheaderbyheight", "params": {"height" : 0}, "id": "1"}'