Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BalancesResponse ¶
type BalancesResponse struct {
WalletAddress string `json:"walletAddress"`
Balances []ChainBalance `json:"balances"`
}
BalancesResponse is the API response from GET /api/user/wallet/balances.
type ChainBalance ¶
type ChainBalance struct {
ChainID string `json:"chainId"`
ChainName string `json:"chainName"`
NativeBalance string `json:"nativeBalance"`
Tokens []TokenBalance `json:"tokens"`
}
ChainBalance holds the balance for a single chain.
type Token ¶
type Token struct {
ChainID string `json:"chainId"`
TokenAddress string `json:"tokenAddress"`
Symbol string `json:"symbol"`
Name string `json:"name"`
Decimals int `json:"decimals"`
}
Token holds metadata for a single supported token.
type TokenBalance ¶
type TokenBalance struct {
Symbol string `json:"symbol"`
Balance string `json:"balance"`
Decimals int `json:"decimals"`
}
TokenBalance holds the balance for a single token.
type TokensResponse ¶
type TokensResponse struct {
Tokens []Token `json:"tokens"`
}
TokensResponse is the API response from GET /api/user/wallet/tokens.
Click to show internal directories.
Click to hide internal directories.