Monerod's API is split up in normal HTTP routes and a JSON-RPC endpoint. Most methods are available on one but not on the other, so in most cases both will be used
C49_API_KEY=INSERT_YOUR_KEY_HERE
# /json_rpc example
curl https://rpc.chain49.com/monero/json_rpc \
-d '{"jsonrpc":"2.0","id":"0","method":"getblockheaderbyheight","params":{"height":912345}}' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: '$C49_API_KEY
# HTTP POST example
curl https://rpc.chain49.com/monero/get_transactions \
-d '{"txs_hashes":["d6e48158472848e6687173a91ae6eebfa3e1d778e65252ee99d7515d63090408"]}' \
-H 'X-API-Key: '$C49_API_KEY
Detailed documentation for each method can be found in the official docs here: https://www.getmonero.org/resources/developer-guides/daemon-rpc.html
Here is a list of all allowed methods (Monerod runs in restricted mode but no further method white/blacklisting is done)
HTTP Methods | JSON-RPC (/json_rpc) |
---|---|
/json_rpc | getblockcount / get_block_count |
/getblocks.bin & /get_blocks.bin | on_getblockhash / on_get_block_hash |
/getblocks_by_height.bin & /get_blocks_by_height.bin | getblocktemplate / get_block_template |
/gethashes.bin & /get_hashes.bin | get_miner_data |
/get_o_indexes.bin | submitblock / submit_block |
/get_outs.bin | getlastblockheader / get_last_block_header |
/gettransactions & /get_transactions | getblockheaderbyhash / get_block_header_by_hash |
/get_alt_blocks_hashes | getblockheaderbyheight / get_block_header_by_height |
/is_key_image_spent | getblockheadersrange / get_block_headers_range |
/sendrawtransaction & /send_raw_transaction | getblock / get_block |
/get_public_nodes | add_aux_pow |
/get_transaction_pool | get_info |
/get_transaction_pool_hashes.bin | hard_fork_info |
/get_transaction_pool_hashes | get_output_histogram |
/get_transaction_pool_stats | get_version |
/getinfo & /get_info | get_fee_estimate |
/get_limit | get_txpool_backlog |
/get_outs | get_output_distribution |
/get_output_distribution.bin | rpc_access_info |
/getheight | rpc_access_submit_nonce |
rpc_access_pay |