RPC Daemon
This is a daemon based on RPC Daemon Of TurboGeth, that adds additional API for ETH supply.
API
The daemon supports everything that the original daemon supports.
It also adds API for eth supply. They area all in the tg
namespace.
tg_getSupply
Returns the supply for the specified block.
Parameters
The RPC command only receives one parameter.
- block number or "latest" (0, 10000, or 'latest' are example of valid values)
Examples
For the block 10.000
{
"jsonrpc": "2.0",
"id": 1,
"method": "tg_getSupply",
"params": [10000]
}
For the latest block
{
"jsonrpc": "2.0",
"id": 1,
"method": "tg_getSupply",
"params": ["latest"]
}
For genesis
{
"jsonrpc": "2.0",
"id": 1,
"method": "tg_getSupply",
"params": [0]
}