Documentation ¶
Index ¶
- type Block
- type Client
- func (c *Client) GetEpochInfo() (epochInfo EpochInfo, err error)
- func (c *Client) GetLasteBlock() (int64, error)
- func (c *Client) GetTransactionSignatures(signatures []ConfirmedSignature) ([]ConfirmedTransaction, error)
- func (c *Client) GetTransactionsByAddress(address string) ([]ConfirmedTransaction, error)
- func (c *Client) GetTransactionsInBlock(num int64) (block Block, err error)
- type ConfirmedSignature
- type ConfirmedTransaction
- type EpochInfo
- type Instruction
- type Message
- type Meta
- type Parsed
- 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) GetTxsByAddress(address string) (types.Txs, error)
- func (p *Platform) NormalizeTx(tx ConfirmedTransaction, slot uint64, timestamp int64) (normalized types.Tx, err error)
- type TokenAmount
- type TokenTransferInfo
- type Transaction
- type TransferInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { BlockTime int64 `json:"blockTime"` Transactions []ConfirmedTransaction `json:"transactions"` }
type Client ¶
func (*Client) GetEpochInfo ¶
func (*Client) GetLasteBlock ¶
func (*Client) GetTransactionSignatures ¶
func (c *Client) GetTransactionSignatures(signatures []ConfirmedSignature) ([]ConfirmedTransaction, error)
func (*Client) GetTransactionsByAddress ¶
func (c *Client) GetTransactionsByAddress(address string) ([]ConfirmedTransaction, error)
type ConfirmedSignature ¶
type ConfirmedTransaction ¶
type ConfirmedTransaction struct { Meta Meta `json:"meta"` BlockTime int64 `json:"blockTime,omitempty"` Slot uint64 `json:"slot,omitempty"` Transaction Transaction `json:"transaction"` }
type Instruction ¶
type Instruction struct { Parsed interface{} `json:"parsed"` Program string `json:"program"` }
type Message ¶
type Message struct {
Instructions []Instruction `json:"instructions"`
}
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) CurrentBlockNumber ¶
func (*Platform) GetBlockByNumber ¶
func (*Platform) GetTxsByAddress ¶
func (*Platform) NormalizeTx ¶
type TokenAmount ¶
type TokenTransferInfo ¶
type TokenTransferInfo struct { Destination string `json:"destination"` Mint string `json:"mint"` Source string `json:"source"` TokenAmount TokenAmount `json:"tokenAmount"` }
type Transaction ¶
type TransferInfo ¶
Click to show internal directories.
Click to hide internal directories.