rpc

command
v0.0.0-...-2bf3886 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 15 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL