Documentation ¶
Index ¶
- func EstimateTimestamp(slot uint64) int64
- func NormalizeDelegations(stakeAccounts []StakeData, validators blockatlas.ValidatorMap, ...) (blockatlas.DelegationsPage, error)
- type Account
- type Client
- func (c *Client) GetAccount(pubkey string) (account Account, err error)
- func (c *Client) GetCurrentVoteAccounts() (validators []VoteAccount, err error)
- func (c *Client) GetEpochInfo() (epochInfo EpochInfo, err error)
- func (c *Client) GetMinimumBalanceForRentExemption() (minimumBalance uint64, err error)
- func (c *Client) GetStakeAccounts() (accounts []KeyedAccount, err error)
- func (c *Client) GetTransactionList(address string) ([]ConfirmedSignature, error)
- func (c *Client) GetTransactions(address string) ([]ConfirmedTransaction, error)
- type ConfirmedSignature
- type ConfirmedTransaction
- type EpochInfo
- type Info
- type Instructions
- type KeyedAccount
- type Message
- type Meta
- type Parsed
- type Platform
- func (p *Platform) Coin() coin.Coin
- func (p *Platform) GetActiveValidators() (blockatlas.StakeValidators, error)
- func (p *Platform) GetDelegations(address string) (blockatlas.DelegationsPage, error)
- func (p *Platform) GetDetails() blockatlas.StakingDetails
- func (p *Platform) GetTxsByAddress(address string) (types.TxPage, error)
- func (p *Platform) GetValidators() (blockatlas.ValidatorPage, error)
- func (p *Platform) NormalizeTx(tx ConfirmedTransaction, address string) (normalized types.Tx, err error)
- func (p *Platform) UndelegatedBalance(address string) (string, error)
- type RpcAccount
- type RpcContext
- type StakeData
- type StakeState
- type Transaction
- type VoteAccount
- type VoteAccounts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EstimateTimestamp ¶ added in v1.1.15
func NormalizeDelegations ¶
func NormalizeDelegations(stakeAccounts []StakeData, validators blockatlas.ValidatorMap, epochInfo EpochInfo) (blockatlas.DelegationsPage, error)
Types ¶
type Client ¶
func (*Client) GetCurrentVoteAccounts ¶
func (c *Client) GetCurrentVoteAccounts() (validators []VoteAccount, err error)
func (*Client) GetEpochInfo ¶
func (*Client) GetMinimumBalanceForRentExemption ¶
func (*Client) GetStakeAccounts ¶
func (c *Client) GetStakeAccounts() (accounts []KeyedAccount, err error)
func (*Client) GetTransactionList ¶ added in v1.1.15
func (c *Client) GetTransactionList(address string) ([]ConfirmedSignature, error)
func (*Client) GetTransactions ¶ added in v1.1.15
func (c *Client) GetTransactions(address string) ([]ConfirmedTransaction, error)
type ConfirmedSignature ¶ added in v1.1.15
type ConfirmedTransaction ¶ added in v1.1.15
type ConfirmedTransaction struct { Meta Meta `json:"meta"` Slot uint64 `json:"slot"` Transaction Transaction `json:"transaction"` }
type Instructions ¶ added in v1.1.15
type KeyedAccount ¶
type Message ¶ added in v1.1.15
type Message struct {
Instructions []Instructions `json:"instructions"`
}
type Meta ¶ added in v1.1.15
type Meta struct { Err interface{} `json:"err"` Fee uint64 `json:"fee"` }
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) GetActiveValidators ¶ added in v1.1.4
func (p *Platform) GetActiveValidators() (blockatlas.StakeValidators, error)
func (*Platform) GetDelegations ¶
func (p *Platform) GetDelegations(address string) (blockatlas.DelegationsPage, error)
func (*Platform) GetDetails ¶
func (p *Platform) GetDetails() blockatlas.StakingDetails
func (*Platform) GetTxsByAddress ¶
func (*Platform) GetValidators ¶
func (p *Platform) GetValidators() (blockatlas.ValidatorPage, error)
func (*Platform) NormalizeTx ¶ added in v1.1.15
type RpcAccount ¶
type RpcAccount struct { Context RpcContext `json:"context"` Account Account `json:"value"` }
type RpcContext ¶
type RpcContext struct {
Slot uint64 `json:"slot"`
}
type StakeData ¶
type StakeData struct { State StakeState RentExemptReserve uint64 AuthorizedStaker [32]byte AuthorizedWithdrawer [32]byte UnixTimestamp int64 LockupEpoch uint64 Custodian [32]byte VoterPubkey [32]byte Stake uint64 ActivationEpoch uint64 DeactivationEpoch uint64 WarmupCooldownRate float64 CreditsObserved uint64 }
type StakeState ¶
type StakeState uint32
const ( StakeStateUninitialized StakeState = 0 StakeStateInitialized StakeState = 1 StakeStateDelegated StakeState = 2 StakeStateRewardsPool StakeState = 3 )
type Transaction ¶ added in v1.1.15
type VoteAccount ¶
type VoteAccount struct { NodePubkey string `json:"nodePubkey"` VotePubkey string `json:"votePubkey"` Commission uint64 `json:"commission"` ActivatedStake uint64 `json:"activatedStake"` RootSlot uint64 `json:"rootSlot"` LastVote uint64 `json:"lastVote"` EpochCredits [][]uint64 `json:"epochCredits"` EpochVoteAccount bool `json:"epochVoteAccount"` }
type VoteAccounts ¶
type VoteAccounts struct { Current []VoteAccount `json:"current"` Delinquent []VoteAccount `json:"delinquent"` }
Click to show internal directories.
Click to hide internal directories.