Documentation ¶
Index ¶
- func FromWei(value *big.Int) *big.Int
- type RpcCall
- func (rpcCall *RpcCall) GetBalance(address string) (balance *big.Int, err error)
- func (rpcCall *RpcCall) GetBlockByHash(hash string) (block jsonrpc.Block, err error)
- func (rpcCall *RpcCall) GetBlockByNumber(number uint64) (block jsonrpc.Block, err error)
- func (rpcCall *RpcCall) GetBlockNumber() (blockNumber uint64, err error)
- func (rpcCall *RpcCall) GetNodeList(blockHash string) (nodes []jsonrpc.NodeInfo, err error)
- func (rpcCall *RpcCall) GetTransactionByHash(hash string) (transaction jsonrpc.Transaction, err error)
- func (rpcCall *RpcCall) GetTransactionsByBlockHash(blockHash string) (transactions []jsonrpc.Transaction, err error)
- func (rpcCall *RpcCall) GetTransactionsByBlockNumber(blockNumber uint64) (transactions []jsonrpc.Transaction, err error)
- func (rpcCall *RpcCall) Init(client *rpc.Client)
- func (rpcCall *RpcCall) ListAccount() (accounts []string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RpcCall ¶ added in v1.0.3
func (*RpcCall) GetBalance ¶ added in v1.0.5
获取balance
func (*RpcCall) GetBlockByHash ¶ added in v1.0.3
func (*RpcCall) GetBlockByNumber ¶ added in v1.0.3
func (*RpcCall) GetBlockNumber ¶ added in v1.0.3
func (*RpcCall) GetNodeList ¶ added in v1.0.3
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) ListAccount ¶ added in v1.0.5
Click to show internal directories.
Click to hide internal directories.