adapter

package
v0.0.0-...-50e54af Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthService

type EthService interface {
	// GetEtHAddrAndPrivateByNum 获取新创建帐号及私钥
	GetEtHAddrAndPrivateByNum(ctx context.Context, num int) (resp []*entity.EntityAddressPrivate)
	// GetNewBlockHeight 获取最新块高
	GetNewBlockHeight(ctx context.Context) (uint64, error)
	// GetDataByBlockHeight 获取块高数据通过块高
	GetDataByBlockHeight(ctx context.Context, height *big.Int) (*types.Block, error)
	// GetDataByBlockHash 获取区块数据通过区块hash
	GetDataByBlockHash(ctx context.Context, hash ethCommon.Hash) (*types.Block, error)
	// GetBalanceByHeight 获取用户余额
	GetBalanceByHeight(ctx context.Context, account ethCommon.Address, height *big.Int) (*big.Int, error)
	// Close 关闭连接
	Close()
}

func NewEth

func NewEth(url, appid, currencyId string) (EthService, error)

Jump to

Keyboard shortcuts

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