Documentation ¶
Index ¶
- Constants
- func Allowance(client *ethclient.Client, token string, owner string, spender string) (*big.Int, error)
- func Approve(client *ethclient.Client, chainId *big.Int, priv *ecdsa.PrivateKey, ...) (string, error)
- func BalanceOf(client *ethclient.Client, token string, account string) (*big.Int, error)
- func ConvertAmount(amount *big.Int, decimals int32) decimal.Decimal
- func Decimals(client *ethclient.Client, token string) (int32, error)
- func Name(client *ethclient.Client, token string) (string, error)
- func Symbol(client *ethclient.Client, token string) (string, error)
- func TotalSupply(client *ethclient.Client, token string) (*big.Int, error)
- func Transfer(client *ethclient.Client, priv *ecdsa.PrivateKey, token string, to string, ...) (string, error)
Constants ¶
View Source
const ( ERC20Abi = `` /* 2177-byte string literal not displayed */ ApproveERC20DefaultGas = 60000 TransferERC20DefaultGas = 60000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.