API Overview

The API provides access to Grin node's Foreign and Owner endpoints.

Foreign API
get_block
get_blocks
get_kernel
get_outputs
get_pmmr_indices
get_pool_size
get_stempool_size
get_tip
get_unconfirmed_transactions
get_unspent_outputs
get_version
push_transaction

Example:
curl -X POST --data '{"jsonrpc":"2.0","method":"get_tip","params":[],"id":1}' https://grincoin.org/v2/foreign

Owner API
get_connected_peers
get_peers
get_status

Example:
curl -X POST --data '{"jsonrpc":"2.0","method":"get_status","params":[],"id":1}' https://grincoin.org/v2/owner

GET API
There are also several GET APIs provided by the explorer.

https://grincoin.org/rpc/block/latest
https://grincoin.org/rpc/market/supply
https://grincoin.org/rpc/network/hashrate
https://grincoin.org/rpc/network/difficulty