token

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL