Documentation ¶
Index ¶
- Variables
- func GetBlockNumber(client *ethclient.Client) (string, error)
- func GetWeiBalance(address string, client *ethclient.Client) (*big.Int, error)
- func InitEthClient(url string) error
- func InitRPCClient(url string) error
- func IsSyncying(client *ethclient.Client) (bool, error)
- func IsValidAddress(iaddress interface{}) bool
- func NewTokenCaller(address common.Address, caller bind.ContractCaller) (*tokenCaller, error)
- func SignAndSendTx(client *ethclient.Client, value *big.Int, toAddress string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ETHClient *ethclient.Client
ETHClient the eth client
View Source
var RPCClient *rpc.Client
RPCClient the rpc client
Functions ¶
func GetBlockNumber ¶
GetBlockNumber gets the block number
func GetWeiBalance ¶
GetWeiBalance the balance in wei for a given address
func IsSyncying ¶
IsSyncying returns false if it's not syncing
func IsValidAddress ¶
func IsValidAddress(iaddress interface{}) bool
IsValidAddress validate hex address
func NewTokenCaller ¶
func NewTokenCaller(address common.Address, caller bind.ContractCaller) (*tokenCaller, error)
NewTokenCaller creates a new read-only instance of token, bound to a specific deployed contract.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.