API documentation
API documentation
Last updated
Was this helpful?
API documentation
Last updated
Was this helpful?
An API server is providing a REST API for ETHO protocol related information. The server can be reached at .
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.
The module with basic functionality provides some basic information both from the Etho Protocol chain and from the master nodes.
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.
module=basic*
String
Set the basic function
action=totalsupply*
String
Set action to totalsupply
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.
module=basic*
String
Set the basic function
action=supply*
String
Set the circulating supply function
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
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
GET
https://api.ethoprotocol.com/api?module=basic&action=node_locations
The call queries the positions and type of Etho Nodes of Etho Protocol.
module=basic*
String
Set the basic function
action=node_locations
String
Set the node location function
GET
https://api.ethoprotocol.com/api?module=basic&action=network_stats
The call queries general stats of Etho Protocol nodes.
module=basic*
String
Set the basic function
action=network_stats
String
Set the network_stats funct {