API/Daemon/json rpc: Difference between revisions

From Talleo Wiki
Jump to navigation Jump to search
No edit summary
 
Line 7: Line 7:
* [[f_on_transactions_pool_json]]
* [[f_on_transactions_pool_json]]
* [[getblockcount]]
* [[getblockcount]]
* [[on_getblockhash]]
* [[getblockhash]]
* [[getblocktemplate]]
* [[getblocktemplate]]
* [[getcurrencyid]]
* [[getcurrencyid]]

Latest revision as of 09:34, 9 March 2025

Node daemon JSON RPC methods

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"}'