API documentation
API documentation
An API server is providing a REST API for ETHO protocol related information. The server can be reached at https://api.ethoprotocol.com.
The syntax of API calls is: https://api.ethoprotocol.com/api?module=xxxx&action=yyyy
where xxxx represents the functionality type and yyyy represents the requested action.
All JSON replies are strings.
Basic functionality
The module with basic functionality provides some basic information both from the Etho Protocol chain and from the master nodes.
Query Etho Protocol total supply
GET
https://api.ethoprotocol.com/api?module=basic&action=totalsupply
This call returns the total supply emitted by the blockchain at the current block number. The total supply contains both mining rewards, uncles, dev rewards, and node rewards.
Query Parameters
module=basic*
String
Set the basic function
action=totalsupply*
String
Set action to totalsupply
Query Etho Protocol circulating supply
GET
https://api.ethoprotocol.com/api?module=basic&action=supply
The call returns the circulating supply of Etho Protocol at the current block number. The circulating supply is defined as: Circulating reward = Total reward - Dev wallet - Staked Etho
The staked ETHO is the result of ETHO providing a storage layer and for that purpose is not in circulation.
Query Parameters
module=basic*
String
Set the basic function
action=supply*
String
Set the circulating supply function
Query Etho Protocol chain information
GET
https://api.ethoprotocol.com/api?module=basic&action=chaininfo
The call queries the difficulty, hashrate and block number of Etho Protocol at the current block number
Query Parameters
module=basic*
String
Set the basic function
action=chaininfo
String
Set the chain info function
blocktime: average time in seconds over the last 10 blocks
difficulty: average difficulty over the last 10 blocks
hashrate: average hash rate over the last 10 blocks
Query Etho Protocol master node locations
GET
https://api.ethoprotocol.com/api?module=basic&action=node_locations
The call queries the positions and type of Etho Nodes of Etho Protocol.
Query Parameters
module=basic*
String
Set the basic function
action=node_locations
String
Set the node location function
Query Etho Protocol master node statistics
GET
https://api.ethoprotocol.com/api?module=basic&action=network_stats
The call queries general stats of Etho Protocol nodes.
Query Parameters
module=basic*
String
Set the basic function
action=network_stats
String
Set the network_stats funct {
Last updated