Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlchemyAPI ¶
type AlchemyAPI struct {
URL string
}
func (AlchemyAPI) FetchEth ¶
func (ac AlchemyAPI) FetchEth(addresses []string) (*[]EthBalance, error)
func (AlchemyAPI) FetchMetadata ¶
func (ac AlchemyAPI) FetchMetadata(contractAddresses []string) (*map[string]FetchMetadataResponse, error)
func (AlchemyAPI) FetchTokens ¶
func (ac AlchemyAPI) FetchTokens(addresses []string) (*[]Wallet, error)
type BlockClient ¶
type BlockClient interface { FetchTokens(addresses []string) (*[]Wallet, error) FetchEth(addresses []string) (*[]EthBalance, error) FetchMetadata(contractAddresses []string) (*map[string]FetchMetadataResponse, error) }
type EthBalance ¶
type FetchEthResponse ¶
type FetchMetadataResponse ¶
type FetchMetadataResponse struct { ID int64 `json:"id"` JSONRPC string `json:"jsonrpc"` Result model.TokenMetadata `json:"result"` }
type TokenBalance ¶
type TokenBalancesResponse ¶
type Wallet ¶
type Wallet struct { Address string `json:"address"` TokenBalances []TokenBalance `json:"tokenBalances"` PageKey string `json:"pageKey"` }
Click to show internal directories.
Click to hide internal directories.