Documentation ¶
Index ¶
- func GetEstimatedGasPrice() *big.Int
- func GetTokenBalance(walletAddress common.Address, tokenAddress common.Address) (*big.Int, error)
- func GetWETHBalance(walletAddress common.Address) (*big.Int, error)
- type AccountBalance
- type AccountBalancesResponse
- type GasOracle
- type GasOracleResponse
- type Response
- type Token
- type TokenBalancesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEstimatedGasPrice ¶
func GetTokenBalance ¶ added in v0.0.6
Types ¶
type AccountBalance ¶
type AccountBalance struct { Account string `json:"account"` BalanceETH *big.Int `json:"balance"` BalanceWETH *big.Int `json:"balance_weth"` }
func GetBalances ¶ added in v0.0.6
func GetBalances(wallets *wallet.Wallets) ([]*AccountBalance, error)
func MultiAccountBalance ¶
func MultiAccountBalance(wallets *wallet.Wallets) []*AccountBalance
type AccountBalancesResponse ¶
type GasOracle ¶
type GasOracle struct { LastBlock string `json:"LastBlock"` SafeGasPrice string `json:"SafeGasPrice"` ProposeGasPrice string `json:"ProposeGasPrice"` FastGasPrice string `json:"FastGasPrice"` SuggestBaseFee string `json:"suggestBaseFee"` GasUsedRatio string `json:"gasUsedRatio"` }
func GetGasOracle ¶
func GetGasOracle() *GasOracle
type GasOracleResponse ¶
type Token ¶ added in v0.0.6
type Token string
const (
WETH Token = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
)
type TokenBalancesResponse ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.