Documentation ¶
Overview ¶
Package utils contains internal helper functions for erc20-token-cli commands.
Index ¶
- func Auth(client *ethclient.Client, privateKeyAddress string) *bind.TransactOpts
- func Client(url string) *ethclient.Client
- func Fatalf(format string, args ...interface{})
- func TokenDecimals(token *token.Token) uint8
- func TokenName(token *token.Token) string
- func TokenSymbol(token *token.Token) string
- func TokenTotalSupply(token *token.Token) *big.Float
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Auth ¶
func Auth(client *ethclient.Client, privateKeyAddress string) *bind.TransactOpts
Auth generates a transaction signer from a single private key.
func Client ¶
Client opens a connection to an Ethereum RPC node and returns an object representing the connection.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf formats a message to standard error and exits the program. The message is also printed to standard output if standard error is redirected to a different file.
func TokenDecimals ¶
func TokenSymbol ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.