requests

package
v0.0.0-...-6653c62 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2018 License: MIT Imports: 13 Imported by: 3

Documentation

Overview

Copyright 2014 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

View Source
const UrlEncoded = `'Content-Type': 'application/x-www-form-urlencoded'`

An url encoded header type {object}

Variables

This section is empty.

Functions

func Audit

func Audit(publicKey, data, signedData string) (bool, error)

Audit an apostille file param publicKey - The signer public key param data - The file data of audited file param signedData - The signed data into the apostille transaction message return - True if valid, false otherwise

func Json

func Json(data string) []string

Create an application/json header param - A json string return - An application/json header with content length

func SearchMosaicDefinitionArray

func SearchMosaicDefinitionArray(mosaicDefinitionArray []MosaicDefinitionMetaDataPair,
	keys []string) map[string]base.MosaicDefinition

Search for mosaic definition(s) into an array of mosaicDefinition objects param mosaicDefinitionArray - An array of mosaicDefinition objects param keys - Array of strings with names of the mosaics to find (['eur', 'usd',...]) return - An object of mosaicDefinition objects

Types

type Account

type Account struct {
	Account string `json:"account,omitempty"`
}

type AccountInfo

type AccountInfo struct {
	// Address contains the address of the account.
	Address string
	// Balance contains the balance of the account in micro NEM.
	Balance float64
	// vestedBalance contains the vested part of the balance of the account in micro NEM.
	VestedBalance float64
	// Importance contains the importance of the account.
	Importance float64
	// PublicKey contains the public key of the account.
	PublicKey string
	// Label has the label of the account( not used, always null).
	Label string
	// HarvestedBlocks contains the number of blocks that the account already harvested.
	HarvestedBlocks int
}

AccountInfo describes basic information for an account.

type AccountMetaData

type AccountMetaData struct {
	// Status contains the harvesting status of a queried account.
	// The harvesting status can be one of the following values:
	// "UNKNOWN": The harvesting status of the account is not known.
	// "LOCKED": The account is not harvesting.
	// "UNLOCKED": The account is harvesting.
	Status string
	// RemoteStatus contains the status of teh remote harvesting of a queried account.
	// The remote harvesting status can be one of the following values:
	// "REMOTE": The account is a remote account and therefore remoteStatus is not applicable for it.
	// "ACTIVATING": The account has activated remote harvesting but it is not yet active.
	// "ACTIVE": The account has activated remote harvesting and remote harvesting is active.
	// "DEACTIVATING": The account has deactivated remote harvesting but remote harvesting is still active.
	// "INACTIVE": The account has inactive remote harvesting, or it has deactivated remote harvesting
	// and deactivation is operational.
	RemoteStatus string
	// CosignatoryOf is a JSON array of AccountInfo structures.
	// The account is cosignatory for each of the accounts in the array.
	CosignatoryOf []AccountInfo
	// Cosignatories is a JSON array of AccountInfo structures.
	// The array holds all accounts that are a cosignatory for this account.
	Cosignatories []AccountInfo
}

AccountMetaData describes additional information for the account.

type AccountMetaDataPair

type AccountMetaDataPair struct {
	// Account contains the account object.
	Account AccountInfo `json:"account"`
	// Meta contain the account meta data object.
	Meta AccountMetaData `json:"meta"`
}

AccountMetaDataPair includes durable information for an account and additional information about its state.

type Block

type Block struct {
	TimeStamp     int64         `json:"timeStamp"`
	Signature     string        `json:"signature"`
	PrevBlockHash PrevBlockHash `json:"prevBlockHash"`
	Type          int           `json:"type"`
	Transactions  []interface{} `json:"transactions"`
	Version       int           `json:"version"`
	Signer        string        `json:"signer"`
	Height        int64         `json:"height"`
}

type BlockHeight

type BlockHeight struct {
	Height int64
}

BlockHeight contains a chain height

type Client

type Client struct {
	Node    Node
	URL     url.URL
	Request func(*http.Request) ([]byte, error)
}

func NewClient

func NewClient(node Node) *Client

func (*Client) AccountData

func (c *Client) AccountData(address string) (AccountMetaDataPair, error)

Gets the AccountMetaDataPair of an account. method Client - An Client endpoint struct point param {string} address - An account address return {struct} - An struct[AccountMetaDataPair] struct link http://bob.nem.ninja/docs/#accountMetaDataPair

func (*Client) AccountDataFromPublicKey

func (c *Client) AccountDataFromPublicKey(publicKey string) (AccountMetaDataPair, error)

Gets the AccountMetaDataPair of an account with a public Key. method Client - An Client endpoint struct point param publicKey - An account public key return - An struct AccountMetaDataPair struct link http://bob.nem.ninja/docs/#accountMetaDataPair

func (*Client) AllTransactions

func (c *Client) AllTransactions(address, txHash, txId string) ([]TransactionMetaDataPair, error)

Gets all transactions of an account method Client - An Client endpoint struct point param address - An account address param txHash - The 256 bit sha3 hash of the transaction up to which transactions are returned. (optional) param txId - The transaction id up to which transactions are returned. (optional) return - An slice of TransactionMetaDataPair struct link http://bob.nem.ninja/docs/#transactionMetaDataPair

func (Client) Announce

func (c Client) Announce(serialize RequestAnnounce) (NemAnnounceResult, error)

Broadcast a transaction to the NEM network Method Client - An Client endpoint struct point param serialize - A RequestAnnounce struct return - A NemAnnounceResult struct link http://bob.nem.ninja/docs/#nemAnnounceResult

func (*Client) BlockAfterByHeight

func (c *Client) BlockAfterByHeight(height int64) ([]ExplorerBlockViewModel, error)

Gets part of a chain param Client - An Client endpoint struct point param height - The height of the block return - A array of ExplorerBlockViewModel struct link https://nemproject.github.io/#getting-part-of-a-chain

func (*Client) BlockByHeight

func (c *Client) BlockByHeight(height int64) (Block, error)

Gets a block by its height param Client - An Client endpoint struct point param height - The height of the block return - A block struct

func (*Client) ByHash

func (c *Client) ByHash(txHash string) (TransactionMetaDataPair, error)

Gets a TransactionMetaDataPair object from the chain using it's hash Method Client - An Client endpoint struct point param txHash - A transaction hash return A TransactionMetaDataPair struct link http://bob.nem.ninja/docs/#transactionMetaDataPair

func (*Client) Forwarded

func (c *Client) Forwarded(address string) (AccountMetaDataPair, error)

Gets the AccountMetaDataPair of the account for which the given account is the delegate account method Client - An Client endpoint struct point param address - An account address return - An struct[AccountMetaDataPair] struct link http://bob.nem.ninja/docs/#accountMetaDataPair

func (Client) GetBatchAccountData

func (c Client) GetBatchAccountData(addresses []string) ([]AccountMetaDataPair, error)

Gets the AccountMetaDataPair of an array of accounts. method Client - An Client endpoint struct point param addresses - An array of account addresses return - An slice that contains an array of AccountMetaDataPair struct link http://bob.nem.ninja/docs/#accountMetaDataPair

func (Client) GetBatchHistoricalAccountData

func (c Client) GetBatchHistoricalAccountData(addresses []string, block int) ([]AccountMetaDataPair, error)

Gets the AccountMetaDataPair of an array of accounts from an historical height. method Client - An Client endpoint struct point param addresses - An array of account addresses param block - The block height return - An slice Account information for all the accounts on the given block

func (Client) GetHistoricalAccountData

func (c Client) GetHistoricalAccountData(addresses string, block int) ([]AccountMetaDataPair, error)

Gets the AccountMetaDataPair of an account from a certain block. method Client - An Client endpoint struct point param address - An account address param block - the block height return - An slice AccountMetaDataPair struct link http://bob.nem.ninja/docs/#accountMetaDataPair

func (*Client) HarvestedBlocks

func (c *Client) HarvestedBlocks(address string) ([]HarvestInfo, error)

Gets an array of harvest info objects for an account. method Client - An Client endpoint struct point param address - An account address return - An slice of HarvestInfo struct link http://bob.nem.ninja/docs/#harvestInfo

func (*Client) Heartbeat

func (c *Client) Heartbeat() (NemRequestResult, error)

Determines if NIS is up and responsive. method Client - An Client endpoint struct point return - A NemRequestResult struct link http://bob.nem.ninja/docs/#nemRequestResult

func (*Client) Height

func (c *Client) Height() (BlockHeight, error)

Gets the current height of the block chain. method Client - An Client endpoint struct point return {struct} - A BlockHeight struct link http://bob.nem.ninja/docs/#block-chain-height

func (*Client) IncomingTransactions

func (c *Client) IncomingTransactions(address, txHash, txId string) ([]TransactionMetaDataPair, error)

Gets an array of TransactionMetaDataPair objects where the recipient has the address given as parameter to the request. method Client - An Client endpoint struct point param address - An account address param txHash - The 256 bit sha3 hash of the transaction up to which transactions are returned. (optional) param txId - The transaction id up to which transactions are returned. (optional) return - An slice of TransactionMetaDataPair struct link http://bob.nem.ninja/docs/#transactionMetaDataPair}

func (*Client) LastBlock

func (c *Client) LastBlock() (BlockHeight, error)

Gets the current last block of the chain. method Client - An Client endpoint struct point return

func (*Client) MosaicDefinitions

func (c *Client) MosaicDefinitions(id string) ([]MosaicDefinitionMetaDataPair, error)

Gets mosaic definitions of a namespace method Client - An Client endpoint struct point param id - A namespace id return - An slice of [MosaicDefinition] struct link http://bob.nem.ninja/docs/#mosaicDefinition

func (*Client) MosaicDefinitionsCreated

func (c *Client) MosaicDefinitionsCreated(address, parent string) ([]base.MosaicDefinition, error)

Gets mosaic definitions that an account has created method Client - An Client endpoint struct point param address - An account address param parent - The namespace parent (optional) return - An slice of [MosaicDefinition] struct link http://bob.nem.ninja/docs/#mosaicDefinition

func (*Client) MosaicDefinitionsOwned

func (c *Client) MosaicDefinitionsOwned(address string) ([]base.MosaicDefinition, error)

Gets mosaic definitions that an account owns method Client - An Client endpoint struct point param address - An account address return - An slice of [MosaicDefinition] struct link http://bob.nem.ninja/docs/#mosaicDefinition

func (*Client) MosaicsOwned

func (c *Client) MosaicsOwned(address string) ([]base.Mosaic, error)

Gets mosaics that an account owns method Client - An Client endpoint struct point param address - An account address return - An slice of [Mosaic] struct link http://bob.nem.ninja/docs/#mosaic

func (*Client) NameSpaceRoots

func (c *Client) NameSpaceRoots(id int) ([]NamespaceMetaDataPair, error)

Gets root namespaces. method Client - An Client endpoint struct point param id - The namespace id up to which root namespaces are returned (optional) return - An slice of NamespaceMetaDataPair struct link http://bob.nem.ninja/docs/#namespaceMetaDataPair

func (*Client) Namespaceinfo

func (c *Client) Namespaceinfo(id string) (Namespace, error)

Gets the namespace with given id. method Client - An Client endpoint struct point param id - A namespace id return - A [NamespaceInfo] struct link http://bob.nem.ninja/docs/#namespace

func (*Client) NamespacesOwned

func (c *Client) NamespacesOwned(address, parent string) ([]Namespace, error)

Gets namespaces that an account owns method Client - An Client endpoint struct point param address - An account address param parent - The namespace parent (optional) return - An slice of Namespace struct link http://bob.nem.ninja/docs/#namespaceMetaDataPair

func (*Client) OutgoingTransactions

func (c *Client) OutgoingTransactions(address, txHash, txId string) ([]TransactionMetaDataPair, error)

Gets an array of TransactionMetaDataPair objects where the recipient has the address given as parameter to the request. method Client - An Client endpoint struct point param address - An account address param txHash - The 256 bit sha3 hash of the transaction up to which transactions are returned. (optional) param txId - The transaction id up to which transactions are returned. (optional) return - An slice of TransactionMetaDataPair struct link http://bob.nem.ninja/docs/#transactionMetaDataPair

func (*Client) StartHarvesting

func (c *Client) StartHarvesting(privateKey string) error

Unlocks an account (starts harvesting). method Client - An Client endpoint struct point param privateKey - A delegated account private key return - error

func (*Client) StopHarvesting

func (c *Client) StopHarvesting(privateKey string) error

Locks an account (stops harvesting). method Client - An Client endpoint struct point param privateKey - A delegated account private key return - error

func (*Client) Supply

func (c *Client) Supply(id string) (MosaicSupplyInfo, error)

Gets the current supply of a mosaic method Client - An Client endpoint struct point param id - A mosaic id return - An mosaicSupplyInfo struct

func (*Client) Time

func (c *Client) Time() (TimeStamps, error)

Gets network time (in ms) method Client - An Client endpoint struct point return - A [communicationTimeStamps] link http://bob.nem.ninja/docs/#communicationTimeStamps

func (*Client) UnconfirmedTransactions

func (c *Client) UnconfirmedTransactions(address string) ([]UnconfirmedTransactionMetaDataPair, error)

Gets the array of transactions for which an account is the sender or receiver and which have not yet been included in a block. method Client - An Client endpoint struct point param address - An account address return - An slice of UnconfirmedTransactionMetaDataPair struct link http://bob.nem.ninja/docs/#unconfirmedTransactionMetaDataPair

func (*Client) UnlockInfo

func (c *Client) UnlockInfo() (UnlockInfo, error)

Gets information about the maximum number of allowed harvesters and how many harvesters are already using the node method Client - An Client endpoint struct point return - An UnlockInfo struct link http://bob.nem.ninja/docs/#retrieving-the-unlock-info

type Coords

type Coords struct {
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
	NumNodes  int     `json:"numNodes"`
}

type ExplorerBlockViewModel

type ExplorerBlockViewModel struct {
	Txes       []ExplorerTransferViewModel `json:"txes"`
	Block      Block                       `json:"block"`
	Hash       string                      `json:"hash"`
	Difficulty int                         `json:"difficulty"`
}

type ExplorerTransferViewModel

type ExplorerTransferViewModel struct {
	Tx        TransactionResponce `json:"tx"`
	Hash      string              `json:"hash"`
	InnerHash string              `json:"innerHash"`
}

type HarvestInfo

type HarvestInfo struct {
	TimeStamp  int64
	Difficulty int
	TotalFee   int
	ID         int
	Height     int64
}

HarvestInfo is information about harvested blocks

type HbAccountData

type HbAccountData struct {
	Accounts    *[]Account `json:"accounts,omitempty"`
	StartHeight int        `json:"startHeight,omitempty"`
	EndHeight   int        `json:"endHeight,omitempty"`
	IncrementBy int        `json:"incrementBy,omitempty"`
}

type HgAccountData

type HgAccountData struct {
	Address     string `json:"address,omitempty"`
	StartHeight int    `json:"startHeight,omitempty"`
	EndHeight   int    `json:"endHeight,omitempty"`
	IncrementBy int    `json:"incrementBy,omitempty"`
}

type ID

type ID struct {
	NamespaceID string `json:"namespaceId,omitempty"`
	Name        string `json:"name,omitempty"`
}

type InnerTransactionHash

type InnerTransactionHash struct {
	Data string `json:"data,omitempty"`
}

type MarketInfo

type MarketInfo struct {
	BTCBCN struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_BCN"`
	BTCBLK struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_BLK"`
	BTCBTCD struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_BTCD"`
	BTCBTM struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_BTM"`
	BTCBTS struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_BTS"`
	BTCBURST struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_BURST"`
	BTCCLAM struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_CLAM"`
	BTCDASH struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_DASH"`
	BTCDGB struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_DGB"`
	BTCDOGE struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_DOGE"`
	BTCEMC2 struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_EMC2"`
	BTCFLDC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_FLDC"`
	BTCFLO struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_FLO"`
	BTCGAME struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_GAME"`
	BTCGRC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_GRC"`
	BTCHUC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_HUC"`
	BTCLTC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_LTC"`
	BTCMAID struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_MAID"`
	BTCOMNI struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_OMNI"`
	BTCNAV struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_NAV"`
	BTCNEOS struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_NEOS"`
	BTCNMC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_NMC"`
	BTCNXT struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_NXT"`
	BTCPINK struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_PINK"`
	BTCPOT struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_POT"`
	BTCPPC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_PPC"`
	BTCRIC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_RIC"`
	BTCSTR struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_STR"`
	BTCSYS struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_SYS"`
	BTCVIA struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_VIA"`
	BTCXVC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_XVC"`
	BTCVRC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_VRC"`
	BTCVTC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_VTC"`
	BTCXBC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_XBC"`
	BTCXCP struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_XCP"`
	BTCXEM struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_XEM"`
	BTCXMR struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_XMR"`
	BTCXPM struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_XPM"`
	BTCXRP struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_XRP"`
	USDTBTC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"USDT_BTC"`
	USDTDASH struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"USDT_DASH"`
	USDTLTC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"USDT_LTC"`
	USDTNXT struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"USDT_NXT"`
	USDTSTR struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"USDT_STR"`
	USDTXMR struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"USDT_XMR"`
	USDTXRP struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"USDT_XRP"`
	XMRBCN struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"XMR_BCN"`
	XMRBLK struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"XMR_BLK"`
	XMRBTCD struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"XMR_BTCD"`
	XMRDASH struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"XMR_DASH"`
	XMRLTC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"XMR_LTC"`
	XMRMAID struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"XMR_MAID"`
	XMRNXT struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"XMR_NXT"`
	BTCETH struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_ETH"`
	USDTETH struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"USDT_ETH"`
	BTCSC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_SC"`
	BTCBCY struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_BCY"`
	BTCEXP struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_EXP"`
	BTCFCT struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_FCT"`
	BTCRADS struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_RADS"`
	BTCAMP struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_AMP"`
	BTCDCR struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_DCR"`
	BTCLSK struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_LSK"`
	ETHLSK struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"ETH_LSK"`
	BTCLBC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_LBC"`
	BTCSTEEM struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_STEEM"`
	ETHSTEEM struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"ETH_STEEM"`
	BTCSBD struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_SBD"`
	BTCETC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_ETC"`
	ETHETC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"ETH_ETC"`
	USDTETC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"USDT_ETC"`
	BTCREP struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_REP"`
	USDTREP struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"USDT_REP"`
	ETHREP struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"ETH_REP"`
	BTCARDR struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_ARDR"`
	BTCZEC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_ZEC"`
	ETHZEC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"ETH_ZEC"`
	USDTZEC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"USDT_ZEC"`
	XMRZEC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"XMR_ZEC"`
	BTCSTRAT struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_STRAT"`
	BTCNXC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_NXC"`
	BTCPASC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_PASC"`
	BTCGNT struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_GNT"`
	ETHGNT struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"ETH_GNT"`
	BTCGNO struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_GNO"`
	ETHGNO struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"ETH_GNO"`
	BTCBCH struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_BCH"`
	ETHBCH struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"ETH_BCH"`
	USDTBCH struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"USDT_BCH"`
	BTCZRX struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_ZRX"`
	ETHZRX struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"ETH_ZRX"`
	BTCCVC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_CVC"`
	ETHCVC struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"ETH_CVC"`
	BTCOMG struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_OMG"`
	ETHOMG struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"ETH_OMG"`
	BTCGAS struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_GAS"`
	ETHGAS struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"ETH_GAS"`
	BTCSTORJ struct {
		ID            int    `json:"id"`
		Last          string `json:"last"`
		LowestAsk     string `json:"lowestAsk"`
		HighestBid    string `json:"highestBid"`
		PercentChange string `json:"percentChange"`
		BaseVolume    string `json:"baseVolume"`
		QuoteVolume   string `json:"quoteVolume"`
		IsFrozen      string `json:"isFrozen"`
		High24Hr      string `json:"high24hr"`
		Low24Hr       string `json:"low24hr"`
	} `json:"BTC_STORJ"`
}

func Xem

func Xem() (MarketInfo, error)

Gets market information from Poloniex api return {struct} - A MarketInfo struct

type MarketInfoBtcPrice

type MarketInfoBtcPrice struct {
	USD struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"USD"`
	AUD struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"AUD"`
	BRL struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"BRL"`
	CAD struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"CAD"`
	CHF struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"CHF"`
	CLP struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"CLP"`
	CNY struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"CNY"`
	DKK struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"DKK"`
	EUR struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"EUR"`
	GBP struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"GBP"`
	HKD struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"HKD"`
	INR struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"INR"`
	ISK struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"ISK"`
	JPY struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"JPY"`
	KRW struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"KRW"`
	NZD struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"NZD"`
	PLN struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"PLN"`
	RUB struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"RUB"`
	SEK struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"SEK"`
	SGD struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"SGD"`
	THB struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"THB"`
	TWD struct {
		One5M  float64 `json:"15m"`
		Last   float64 `json:"last"`
		Buy    float64 `json:"buy"`
		Sell   float64 `json:"sell"`
		Symbol string  `json:"symbol"`
	} `json:"TWD"`
}

func Btc

func Btc() (MarketInfoBtcPrice, error)

Gets BTC price from blockchain.info API return {object} - A MarketInfo object

type Meta

type Meta struct {
	ID int `json:"id"`
}

type MosaicDefinitionMetaDataPair

type MosaicDefinitionMetaDataPair struct {
	Meta   Meta                  `json:"meta"`
	Mosaic base.MosaicDefinition `json:"mosaic"`
}

A mosaic definition consists of a database id and a mosaic definition object. The id is needed for requests that support paging.

type MosaicSupplyInfo

type MosaicSupplyInfo struct {
	MosaicID base.MosaicID `json:"mosaicId"`
	Supply   int           `json:"supply"`
}

type Namespace

type Namespace struct {
	Fqn    string `json:"fqn"`
	Owner  string `json:"owner"`
	Height int64  `json:"height"`
}

A namespace consists of a namespace object and a database id. the id is needed for requests that support paging.

type NamespaceMetaDataPair

type NamespaceMetaDataPair struct {
	Meta      Meta      `json:"meta"`
	Namespace Namespace `json:"namespace"`
}

A namespace consists of a namespace object and a database id. the id is needed for requests that support paging.

type NemAnnounceResult

type NemAnnounceResult struct {
	Type                 int                  `json:"type"`
	Code                 int                  `json:"code"`
	Message              string               `json:"message"`
	TransactionHash      TransactionHash      `json:"transactionHash,omitempty"`
	InnerTransactionHash InnerTransactionHash `json:"innerTransactionHash,omitempty"`
}

The NemAnnounceResult extends the NemRequestResult by supplying the additional fields 'transactionHash' and in case of a multisig transaction 'innerTransactionHash'.

type NemRequestResult

type NemRequestResult struct {
	Type    int    `json:"type"`
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type PrevBlockHash

type PrevBlockHash struct {
	Data string `json:"data"`
}

type RequestAnnounce

type RequestAnnounce struct {
	Data      string `json:"data"`
	Signature string `json:"signature"`
}

A RequestAnnounce object is used to transfer the transaction data and the signature to NIS in order to initiate and broadcast a transaction.

type SuperNode

type SuperNode struct {
	ID            int     `json:"id,omitempty"`
	Alias         string  `json:"alias,omitempty"`
	IP            string  `json:"ip,omitempty"`
	NisPort       int     `json:"nisPort,omitempty"`
	PubKey        string  `json:"pubKey,omitempty"`
	ServantPort   int     `json:"servantPort,omitempty"`
	Status        int     `json:"status,omitempty"`
	Latitude      float64 `json:"latitude,omitempty"`
	PayoutAddress string  `json:"payoutAddress,omitempty"`
	Longitude     float64 `json:"longitude,omitempty"`
	Distance      float64 `json:"distance,omitempty"`
	MaxUnlocked   int     `json:"maxUnlocked,omitempty"`
	NumUnlocked   int     `json:"numUnlocked,omitempty"`
}

func GetSuperNodeStatus

func GetSuperNodeStatus(status int) ([]SuperNode, error)

Gets the all supernodes by status param {number} status - 0 for all nodes, 1 for active nodes, 2 for inactive nodes return {struct} - An SuperNodeInfo struct

func Nearest

func Nearest(latitude, longitude float64) ([]SuperNode, error)

Gets the nearest supernodes param coords - A coordinates object: https://www.w3schools.com/html/html5_geolocation.asp return - An SuperNodeInfo struct

type SuperNodeInfo

type SuperNodeInfo struct {
	Nodes     []Supernode `json:"nodes"`
	NodeCount int         `json:"nodeCount"`
}

func SuperNodeAll

func SuperNodeAll() (SuperNodeInfo, error)

Gets all nodes of the node reward program return - An SuperNodeInfo struct

type Supernode

type Supernode struct {
	ID            string  `json:"id"`
	Alias         string  `json:"alias"`
	IP            string  `json:"ip"`
	NisPort       int     `json:"nisPort"`
	PubKey        string  `json:"pubKey"`
	ServantPort   int     `json:"servantPort"`
	Status        int     `json:"status"`
	Latitude      float64 `json:"latitude"`
	Longitude     float64 `json:"longitude"`
	PayoutAddress string  `json:"payoutAddress"`
}

type TimeStamps

type TimeStamps struct {
	SendTimeStamp    int64 `json:"sendTimeStamp"`
	ReceiveTimeStamp int64 `json:"receiveTimeStamp"`
}

type TransactionHash

type TransactionHash struct {
	Data string `json:"data,omitempty"`
}

type TransactionMetaData

type TransactionMetaData struct {
	// The height of the block in which the transaction was included.
	Height int64 `json:"height"`
	// The id of the transaction.
	ID int `json:"id"`
	// The transaction hash.
	Hash struct {
		Data string `json:"data"`
	} `json:"hash"`
}

TransactionMetaData struct contains additional information about the transaction.

type TransactionMetaDataPair

type TransactionMetaDataPair struct {
	Meta        TransactionMetaData      `json:"meta"`
	Transaction base.TransactionResponce `json:"transaction"`
}

Transactions meta data object contains additional information about the transaction.

type UnconfirmedTransactionMetaData

type UnconfirmedTransactionMetaData struct {
	Data string `json:"data"`
}

The unconfirmed transaction meta data contains the hash of the inner transaction in case the transaction is a multisig transaction. This data is need to initiate a multisig signature transaction.

type UnconfirmedTransactionMetaDataPair

type UnconfirmedTransactionMetaDataPair struct {
	Meta        UnconfirmedTransactionMetaData `json:"meta"`
	Transaction base.Transaction               `json:"transaction"`
}

Transactions meta data object contains additional information about the transaction.

type UnlockInfo

type UnlockInfo struct {
	NumUnlocked int `json:"num-unlocked"`
	MaxUnlocked int `json:"max-unlocked"`
}

Each node can allow users to harvest with their delegated key on that node. The NIS configuration has entries for configuring the maximum number of allowed harvesters and optionally allow harvesting only for certain account addresses. The unlock info gives information about the maximum number of allowed harvesters and how many harvesters are already using the node.

Jump to

Keyboard shortcuts

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