Documentation ¶
Index ¶
- Constants
- func NormalizeTokenTransaction(srcTx Tx, receipt TxReceipt) (types.Txs, error)
- type Account
- type Block
- type Clause
- type Client
- func (c *Client) GetAccount(address string) (account Account, err error)
- func (c *Client) GetBlockByNumber(num int64) (block Block, err error)
- func (c *Client) GetCurrentBlock() (int64, error)
- func (c *Client) GetLogsEvent(address, token string, block int64) (txs []LogEvent, err error)
- func (c *Client) GetTransactionByID(id string) (transaction Tx, err error)
- func (c *Client) GetTransactionReceiptByID(id string) (transaction TxReceipt, err error)
- func (c *Client) GetTransactions(address string, block int64) (txs []LogTransfer, err error)
- type CriteriaSet
- type Event
- type LogEvent
- type LogMeta
- type LogRequest
- type LogTransfer
- type Options
- type Output
- 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) GetTokenTxsByAddress(address, token string) (page types.Txs, err error)
- func (p *Platform) GetTxsByAddress(address string) (types.Txs, error)
- func (p *Platform) GetValidators() (blockatlas.ValidatorPage, error)
- func (p *Platform) NormalizeTransaction(srcTx LogTransfer, trxId Tx, addr string) (tx types.Tx, err error)
- func (p *Platform) UndelegatedBalance(address string) (string, error)
- type Range
- type Tx
- type TxReceipt
Constants ¶
View Source
const (
// The current value comes from https://www.stakingrewards.com/asset/vechain
Annual = 1.35
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
func (*Client) GetAccount ¶
func (*Client) GetBlockByNumber ¶
func (*Client) GetCurrentBlock ¶
func (*Client) GetLogsEvent ¶
Get events related to address and VIP180 contract address
func (*Client) GetTransactionByID ¶
func (*Client) GetTransactionReceiptByID ¶
func (*Client) GetTransactions ¶
func (c *Client) GetTransactions(address string, block int64) (txs []LogTransfer, err error)
type CriteriaSet ¶
type CriteriaSet struct { Sender string `json:"sender,omitempty"` Recipient string `json:"recipient,omitempty"` Address string `json:"address,omitempty"` Topic0 string `json:"topic0,omitempty"` // Raw transaction hash Topic1 string `json:"topic1,omitempty"` // Sender Topic2 string `json:"topic2,omitempty"` // Receiver }
type LogRequest ¶
type LogRequest struct { Options Options `json:"options,omitempty"` CriteriaSet []CriteriaSet `json:"criteriaSet,omitempty"` Range Range `json:"range,omitempty"` Order string `json:"order,omitempty"` }
type LogTransfer ¶
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) GetTokenTxsByAddress ¶
func (*Platform) GetTxsByAddress ¶
func (*Platform) GetValidators ¶
func (p *Platform) GetValidators() (blockatlas.ValidatorPage, error)
func (*Platform) NormalizeTransaction ¶
Click to show internal directories.
Click to hide internal directories.