Versions in this module Expand all Collapse all v1 v1.1.15 Jan 14, 2021 Changes in this version + func GetDirection(address, from, to string) types.Direction + func NormalizePage(srcPage TransactionsList, address, token string, coinIndex uint) (txs types.TxPage) + func NormalizeToken(srcToken *Token, coinIndex uint) types.Token + func NormalizeTokens(srcTokens []Token, coinIndex uint) []types.Token + type Blockbook struct + BestHeight int64 + type Client struct + func (c *Client) GetAddressesFromXpub(xpub string) (tokens []Token, err error) + func (c *Client) GetAllTransactionsByBlockNumber(num int64) ([]Transaction, error) + func (c *Client) GetBlockByNumber(num int64, coinIndex uint) (*types.Block, error) + func (c *Client) GetCurrentBlockNumber() (int64, error) + func (c *Client) GetTokenList(address string, coinIndex uint) (types.TokenPage, error) + func (c *Client) GetTokenTxs(address, token string, coinIndex uint) (types.TxPage, error) + func (c *Client) GetTokens(address string) ([]Token, error) + func (c *Client) GetTransactions(address string, coinIndex uint) (types.TxPage, error) + func (c *Client) GetTransactionsByBlockNumber(number int64, page int64) (block TransactionsList, err error) + func (c *Client) GetTransactionsByXpub(xpub string) (transactions TransactionsList, err error) + func (c *Client) GetTxs(address string) (TransactionsList, error) + func (c *Client) GetTxsWithContract(address, contract string) (TransactionsList, error) + type EthereumSpecific struct + Data string + GasLimit *big.Int + GasPrice string + GasUsed *big.Int + Nonce uint64 + Status int + func (s *EthereumSpecific) GetStatus() (types.Status, string) + type NodeInfo struct + Blockbook *Blockbook + type Output struct + Addresses []string + ScriptPubKey ScriptPubKey + TxId string + Value string + func (o Output) OutputAddress() []string + type ScriptPubKey struct + Addresses []string + type Token struct + Balance string + Contract string + Decimals uint + Name string + Symbol string + Type types.TokenType + type TokenTransfer struct + Decimals uint + From string + Name string + Symbol string + To string + Token string + Type string + Value string + type Transaction struct + BlockHash string + BlockHeight int64 + BlockTime int64 + Confirmations uint64 + EthereumSpecific *EthereumSpecific + Fees string + ID string + TokenTransfers []TokenTransfer + Value string + ValueOut string + Version uint64 + Vin []Output + Vout []Output + func (transaction *Transaction) FromAddress() string + func (transaction *Transaction) GetFee() string + func (transaction *Transaction) ToAddress() string + func (transaction Transaction) Amount() string + func (transaction Transaction) GetBlockHeight() uint64 + func (transaction Transaction) GetStatus() types.Status + type TransactionsList struct + Hash string + ItemsOnPage int64 + Page int64 + Tokens []Token + TotalPages int64 + Transactions []Transaction + TxCount int64 + Txs interface{} + func (tl *TransactionsList) TransactionList() []Transaction