utils

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromWei added in v1.0.5

func FromWei(value *big.Int) *big.Int

Types

type RpcCall added in v1.0.3

type RpcCall struct {
	EthereumClient *rpc.Client
}

func (*RpcCall) GetBalance added in v1.0.5

func (rpcCall *RpcCall) GetBalance(address string) (balance *big.Int, err error)

获取balance

func (*RpcCall) GetBlockByHash added in v1.0.3

func (rpcCall *RpcCall) GetBlockByHash(hash string) (block jsonrpc.Block, err error)

func (*RpcCall) GetBlockByNumber added in v1.0.3

func (rpcCall *RpcCall) GetBlockByNumber(number uint64) (block jsonrpc.Block, err error)

func (*RpcCall) GetBlockNumber added in v1.0.3

func (rpcCall *RpcCall) GetBlockNumber() (blockNumber uint64, err error)

func (*RpcCall) GetNodeList added in v1.0.3

func (rpcCall *RpcCall) GetNodeList(blockHash string) (nodes []jsonrpc.NodeInfo, err error)

func (*RpcCall) GetTransactionByHash added in v1.0.3

func (rpcCall *RpcCall) GetTransactionByHash(hash string) (transaction jsonrpc.Transaction, err error)

func (*RpcCall) GetTransactionsByBlockHash added in v1.0.3

func (rpcCall *RpcCall) GetTransactionsByBlockHash(blockHash string) (transactions []jsonrpc.Transaction, err error)

func (*RpcCall) GetTransactionsByBlockNumber added in v1.0.3

func (rpcCall *RpcCall) GetTransactionsByBlockNumber(blockNumber uint64) (transactions []jsonrpc.Transaction, err error)

func (*RpcCall) Init added in v1.0.3

func (rpcCall *RpcCall) Init(client *rpc.Client)

func (*RpcCall) ListAccount added in v1.0.5

func (rpcCall *RpcCall) ListAccount() (accounts []string, err error)

Jump to

Keyboard shortcuts

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