Documentation ¶
Index ¶
- type EthClient
- func (e *EthClient) Close()
- func (a EthClient) GetBalanceByHeight(ctx context.Context, account ethCommon.Address, height *big.Int) (*big.Int, error)
- func (a EthClient) GetDataByBlockHash(ctx context.Context, hash ethCommon.Hash) (*types.Block, error)
- func (a EthClient) GetDataByBlockHeight(ctx context.Context, height *big.Int) (*types.Block, error)
- func (e *EthClient) GetEtHAddrAndPrivateByNum(ctx context.Context, num int) (resp []*entity.EntityAddressPrivate)
- func (a EthClient) GetNewBlockHeight(ctx context.Context) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthClient ¶
func (EthClient) GetBalanceByHeight ¶
func (a EthClient) GetBalanceByHeight(ctx context.Context, account ethCommon.Address, height *big.Int) (*big.Int, error)
GetBalanceByHeight 获取用户余额
func (EthClient) GetDataByBlockHash ¶
func (a EthClient) GetDataByBlockHash(ctx context.Context, hash ethCommon.Hash) (*types.Block, error)
GetDataByBlockHash 获取区块数据通过区块hash
func (EthClient) GetDataByBlockHeight ¶
GetDataByBlockHeight 获取块高数据通过块高
func (*EthClient) GetEtHAddrAndPrivateByNum ¶
func (e *EthClient) GetEtHAddrAndPrivateByNum(ctx context.Context, num int) (resp []*entity.EntityAddressPrivate)
GetEtHAddrAndPrivateByNum 获取新创建帐号及私钥
Click to show internal directories.
Click to hide internal directories.