Documentation ¶
Index ¶
- Constants
- type AccountMeta
- type Client
- func (c Client) FetchAccountMeta(address string) (AccountMeta, error)
- func (c Client) FetchLatestBlockNumber() (int64, error)
- func (c Client) FetchTokens() (Tokens, error)
- func (c Client) FetchTransactionsByAddressAndTokenID(address, tokenID string) ([]Tx, error)
- func (c Client) FetchTransactionsInBlock(blockNumber int64) (TransactionsInBlockResponse, error)
- type NodeInfoResponse
- type Platform
- func (p *Platform) Coin() coin.Coin
- func (p *Platform) CurrentBlockNumber() (int64, error)
- func (p *Platform) GetActiveValidators() (blockatlas.StakeValidators, error)
- func (p *Platform) GetBlockByNumber(num int64) (*types.Block, error)
- func (p *Platform) GetDelegations(address string) (blockatlas.DelegationsPage, error)
- func (p *Platform) GetDetails() blockatlas.StakingDetails
- func (p *Platform) GetTokenListByAddress(address string) ([]types.Token, error)
- func (p *Platform) GetTokenListIdsByAddress(address string) ([]string, error)
- func (p *Platform) GetTokenTxsByAddress(address, token string) (types.Txs, error)
- func (p *Platform) GetTxsByAddress(address string) (types.Txs, error)
- func (p *Platform) GetValidators() (blockatlas.ValidatorPage, error)
- func (p *Platform) UndelegatedBalance(address string) (string, error)
- type SubTransactions
- type Token
- type TokenBalance
- type Tokens
- type TransactionData
- type TransactionsByAddressAndAssetResponse
- type TransactionsInBlockResponse
- type Tx
- type TxType
Constants ¶
View Source
const (
BNBAsset = "BNB"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountMeta ¶
type AccountMeta struct {
Balances []TokenBalance `json:"balances"`
}
type Client ¶
func InitClient ¶
func (Client) FetchAccountMeta ¶
func (c Client) FetchAccountMeta(address string) (AccountMeta, error)
func (Client) FetchLatestBlockNumber ¶
func (Client) FetchTokens ¶
func (Client) FetchTransactionsByAddressAndTokenID ¶
func (Client) FetchTransactionsInBlock ¶
func (c Client) FetchTransactionsInBlock(blockNumber int64) (TransactionsInBlockResponse, error)
type NodeInfoResponse ¶
type NodeInfoResponse struct { SyncInfo struct { LatestBlockHeight int `json:"latest_block_height"` } `json:"sync_info"` }
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) CurrentBlockNumber ¶
func (*Platform) GetActiveValidators ¶
func (p *Platform) GetActiveValidators() (blockatlas.StakeValidators, error)
func (*Platform) GetBlockByNumber ¶
func (*Platform) GetDelegations ¶
func (p *Platform) GetDelegations(address string) (blockatlas.DelegationsPage, error)
func (*Platform) GetDetails ¶
func (p *Platform) GetDetails() blockatlas.StakingDetails
func (*Platform) GetTokenListByAddress ¶
func (*Platform) GetTokenListIdsByAddress ¶
func (*Platform) GetTokenTxsByAddress ¶
func (*Platform) GetTxsByAddress ¶
func (*Platform) GetValidators ¶
func (p *Platform) GetValidators() (blockatlas.ValidatorPage, error)
type SubTransactions ¶
type TokenBalance ¶
type TransactionData ¶
type TransactionsByAddressAndAssetResponse ¶
type TransactionsByAddressAndAssetResponse struct {
Txs []Tx `json:"tx"`
}
type Tx ¶
type Tx struct { TxHash string `json:"txHash"` BlockHeight int `json:"blockHeight"` TxType TxType `json:"txType"` TimeStamp time.Time `json:"timeStamp"` FromAddr interface{} `json:"fromAddr"` ToAddr interface{} `json:"toAddr"` Value string `json:"value"` TxAsset string `json:"txAsset"` TxFee string `json:"txFee"` OrderID string `json:"orderId,omitempty"` Code int `json:"code"` Data string `json:"data"` Memo string `json:"memo"` Source int `json:"source"` SubTransactions []SubTransactions `json:"subTransactions,omitempty"` Sequence int `json:"sequence"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.