Documentation ¶
Index ¶
- Variables
- 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 ENSMetadata
- type ENSMetadataAttribute
- type ERC1155Metadata
- type ERC1155MetadataAttribute
- type ERC1155MetadataImageDetails
- type GasOracle
- type GasOracleResponse
- type Response
- type Token
- type TokenBalancesResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ENSContract = common.HexToAddress(ensContractAddress)
Functions ¶
func GetEstimatedGasPrice ¶ added in v0.2.0
func GetTokenBalance ¶ added in v0.2.0
Types ¶
type AccountBalance ¶ added in v0.2.0
type AccountBalance struct { Account string `json:"account"` BalanceETH *big.Int `json:"balance"` BalanceWETH *big.Int `json:"balance_weth"` }
func GetBalances ¶ added in v0.2.0
func GetBalances(wallets *wallet.Wallets) ([]*AccountBalance, error)
func MultiAccountBalance ¶ added in v0.2.0
func MultiAccountBalance(wallets *wallet.Wallets) []*AccountBalance
type AccountBalancesResponse ¶ added in v0.2.0
type ENSMetadata ¶
type ENSMetadata struct { Attributes []ENSMetadataAttribute `json:"attributes"` BackgroundImage string `json:"background_image"` Description string `json:"description"` ImageURL string `json:"image_url"` Name string `json:"name"` NameLength int `json:"name_length"` SegmentLength int `json:"segment_length"` URL string `json:"url"` Version int `json:"version"` }
ENSMetadata defines model for ENSMetadata.
func GetENSMetadataForTokenID ¶
func GetENSMetadataForTokenID(tokenID *big.Int) (*ENSMetadata, error)
type ENSMetadataAttribute ¶
type ERC1155Metadata ¶
type ERC1155Metadata struct { Name string `json:"name"` CreatedBy string `json:"created_by"` ExternalURL string `json:"external_url"` Description string `json:"description"` Attributes []ERC1155MetadataAttribute `json:"attributes"` ImageDetails ERC1155MetadataImageDetails `json:"image_details"` Image string `json:"image"` ImageURL string `json:"image_url"` }
type GasOracle ¶ added in v0.2.0
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 ¶ added in v0.2.0
func GetGasOracle() *GasOracle
type GasOracleResponse ¶ added in v0.2.0
type Token ¶ added in v0.2.0
type Token string
const (
WETH Token = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
)
type TokenBalancesResponse ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.