gobob

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultApiBase = "https://explorer.gobob.xyz"

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	BaseURL string
	Client  *http.Client
}

func NewAPIClient

func NewAPIClient(baseURL string) *APIClient

func (*APIClient) GetAllTokens

func (c *APIClient) GetAllTokens() ([]TokenItems, error)

type NextPageParams

type NextPageParams struct {
	ContractAddressHash string `json:"contract_address_hash" url:"contract_address_hash"`
	FiatValue           string `json:"fiat_value" url:"fiat_value"`
	HolderCount         int    `json:"holder_count" url:"holder_count"`
	IsNameNull          bool   `json:"is_name_null" url:"is_name_null"`
	ItemsCount          int    `json:"items_count" url:"items_count"`
	MarketCap           string `json:"market_cap" url:"market_cap"`
	Name                string `json:"name" url:"name"`
}

type TokenItems

type TokenItems struct {
	CirculatingMarketCap string `json:"circulating_market_cap"`
	IconURL              string `json:"icon_url"`
	Name                 string `json:"name"`
	Decimals             string `json:"decimals"`
	Symbol               string `json:"symbol"`
	Address              string `json:"address"`
	Type                 string `json:"type"`
	Holders              string `json:"holders"`
	ExchangeRate         string `json:"exchange_rate"`
	TotalSupply          string `json:"total_supply"`
}

type TokenResponse

type TokenResponse struct {
	Items          []TokenItems   `json:"items"`
	NextPageParams NextPageParams `json:"next_page_params,omitempty"`
}

Jump to

Keyboard shortcuts

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