package
0.0.0-20210606115826-2bf3886fd3a5
Repository: https://github.com/mandrigin/turbo-api-examples.git
Documentation: pkg.go.dev

# README

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.

  1. 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]
}

# Functions

No description provided by the author
No description provided by the author

# Structs

API - implementation of ExampleApi.
No description provided by the author

# Interfaces

Create interface for your API.