rpc

package
v1.0.7-0...-d590622 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commitment

type Commitment string
const (
	// Most recent block confirmed by supermajority of the cluster as having reached maximum lockout.
	CommitmentMax Commitment = "max"
	// Most recent block having reached maximum lockout on this node.
	CommitmentRoot Commitment = "root"
	// Most recent block that has been voted on by supermajority of the cluster (optimistic confirmation).
	CommitmentSingleGossip Commitment = "singleGossip"
	// The node will query its most recent block. Note that the block may not be complete.
	CommitmentRecent Commitment = "recent"
)

func (Commitment) MarshalJSON

func (c Commitment) MarshalJSON() ([]byte, error)

type EpochInfo

type EpochInfo struct {
	// Current absolute slot in epoch
	AbsoluteSlot int64 `json:"absoluteSlot"`
	// Current block height
	BlockHeight int64 `json:"blockHeight"`
	// Current epoch number
	Epoch int64 `json:"epoch"`
	// Current slot relative to the start of the current epoch
	SlotIndex int64 `json:"slotIndex"`
	// Number of slots in this epoch
	SlotsInEpoch int64 `json:"slotsInEpoch"`
	// Total number of transactions ever (?)
	TransactionCount int64 `json:"transactionCount"`
}

type GetBlockTimeResponse

type GetBlockTimeResponse struct {
	Result int64    `json:"result"`
	Error  rpcError `json:"error"`
}

type GetConfirmedBlocksResponse

type GetConfirmedBlocksResponse struct {
	Result []int64  `json:"result"`
	Error  rpcError `json:"error"`
}

type GetEpochInfoResponse

type GetEpochInfoResponse struct {
	Result EpochInfo `json:"result"`
	Error  rpcError  `json:"error"`
}

type GetLeaderScheduleResponse

type GetLeaderScheduleResponse struct {
	Result LeaderSchedule `json:"result"`
	Error  rpcError       `json:"error"`
}

type GetVoteAccountsBalanceResponse

type GetVoteAccountsBalanceResponse struct {
	Result struct {
		Current []VoteAccountKey `json:"current"`
	} `json:"result"`
	Error rpcError `json:"error"`
}

type GetVoteAccountsResponse

type GetVoteAccountsResponse struct {
	Result struct {
		Current    []VoteAccount `json:"current"`
		Delinquent []VoteAccount `json:"delinquent"`
	} `json:"result"`
	Error rpcError `json:"error"`
}

type LeaderSchedule

type LeaderSchedule map[string][]int64

type VoteAccount

type VoteAccount struct {
	ActivatedStake   int64   `json:"activatedStake"`
	Commission       int     `json:"commission"`
	EpochCredits     [][]int `json:"epochCredits"`
	EpochVoteAccount bool    `json:"epochVoteAccount"`
	LastVote         int     `json:"lastVote"`
	NodePubkey       string  `json:"nodePubkey"`
	RootSlot         int     `json:"rootSlot"`
	IdentityBalance  int
	VotePubkey       string `json:"votePubkey"`
}

type VoteAccountKey

type VoteAccountKey struct {
	NodePubkey       string `json:"nodePubkey"`
	VotePubkey       string `json:"votePubkey"`
	ValidatorBalance int    `json:"lastVote"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL