Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token struct { ItemID int `json:"itemId"` ID int `json:"id"` EthereumBlockNum int `json:"ethereumBlockNum"` EthereumAddress string `json:"ethereumAddress"` Name string `json:"name"` Symbol string `json:"symbol"` Decimals int `json:"decimals"` USD float64 `json:"USD"` FiatUpdate time.Time `json:"fiatUpdate"` }
type TokensAPIResponse ¶
type TokensAPIResponse struct {
Tokens []Token `json:"tokens"`
}
func GetTokens ¶
func GetTokens(hezClient client.HermezClient) (tokens TokensAPIResponse, err error)
GetTokens connects to a hermez node and pull all tokens supported in that specific Hermez network instance
Click to show internal directories.
Click to hide internal directories.