Versions in this module Expand all Collapse all v0 v0.0.4 Feb 27, 2024 Changes in this version + func EthBalance(cli *ethclient.Client, wallet string) (*big.Int, error) type Erc20 + func (e Erc20) Transfer(cli *ethclient.Client, chainId int64, priKey, to string, amount string) (*types.Transaction, error) v0.0.3 Feb 26, 2024 Changes in this version + func Client(Rpc string) (error, *ethclient.Client) + func GetAuth(cli *ethclient.Client, priKey string, chainId int64) (*bind.TransactOpts, error) + type Erc20 struct + Cli *ethclient.Client + Contract *erc20.Erc20 + func NewErc20(cli *ethclient.Client, erc20Token string) *Erc20 + func (e Erc20) Allowance(owner, spender string) (*big.Int, error) + func (e Erc20) Approve(cli *ethclient.Client, chainId int64, priKey, spender string, amount int64) (*types.Transaction, error) + func (e Erc20) BalanceOf(wallet string) (*big.Int, error) + func (e Erc20) Decimals() (uint8, error)