Documentation ¶
Index ¶
- func Client(Rpc string) (error, *ethclient.Client)
- func EthBalance(cli *ethclient.Client, wallet string) (*big.Int, error)
- func GetAuth(cli *ethclient.Client, priKey string, chainId int64) (*bind.TransactOpts, error)
- type 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)
- func (e Erc20) Transfer(cli *ethclient.Client, chainId int64, priKey, to string, amount string) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EthBalance ¶ added in v0.0.4
Types ¶
Click to show internal directories.
Click to hide internal directories.