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) GetBlockByNumber(num int64) (*types.Block, error)
- func (p *Platform) GetTokenListByAddress(address string) (types.TokenPage, error)
- func (p *Platform) GetTokenTxsByAddress(address, token string) (types.TxPage, error)
- func (p *Platform) GetTxsByAddress(address string) (types.TxPage, 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 ¶ added in v1.1.6
type AccountMeta struct {
Balances []TokenBalance `json:"balances"`
}
type Client ¶ added in v1.0.0
func InitClient ¶ added in v1.1.6
func (Client) FetchAccountMeta ¶ added in v1.1.6
func (c Client) FetchAccountMeta(address string) (AccountMeta, error)
func (Client) FetchLatestBlockNumber ¶ added in v1.1.6
func (Client) FetchTokens ¶ added in v1.1.6
func (Client) FetchTransactionsByAddressAndTokenID ¶ added in v1.1.6
func (Client) FetchTransactionsInBlock ¶ added in v1.1.6
func (c Client) FetchTransactionsInBlock(blockNumber int64) (TransactionsInBlockResponse, error)
type NodeInfoResponse ¶ added in v1.1.6
type NodeInfoResponse struct { SyncInfo struct { LatestBlockHeight int `json:"latest_block_height"` } `json:"sync_info"` }
type Platform ¶ added in v1.0.0
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) CurrentBlockNumber ¶ added in v1.0.0
func (*Platform) GetBlockByNumber ¶ added in v1.0.0
func (*Platform) GetTokenListByAddress ¶ added in v1.0.37
func (*Platform) GetTokenTxsByAddress ¶ added in v1.0.37
type SubTransactions ¶ added in v1.1.6
type TokenBalance ¶ added in v1.1.6
type TransactionData ¶ added in v1.1.6
type TransactionsByAddressAndAssetResponse ¶ added in v1.1.6
type TransactionsByAddressAndAssetResponse struct {
Txs []Tx `json:"tx"`
}
type TransactionsInBlockResponse ¶ added in v1.1.6
type Tx ¶ added in v1.0.0
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"` }
Click to show internal directories.
Click to hide internal directories.