Documentation
¶
Index ¶
- type Peer
- type ResultABCIInfo
- type ResultABCIQuery
- type ResultBlock
- type ResultBlockchainInfo
- type ResultBroadcastTx
- type ResultBroadcastTxCommit
- type ResultCommit
- type ResultDialSeeds
- type ResultDumpConsensusState
- type ResultEvent
- type ResultGenesis
- type ResultNetInfo
- type ResultStatus
- type ResultSubscribe
- type ResultTx
- type ResultUnconfirmedTxs
- type ResultUnsafeFlushMempool
- type ResultUnsafeProfile
- type ResultUnsubscribe
- type ResultValidators
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct {
p2p.NodeInfo `json:"node_info"`
IsOutbound bool `json:"is_outbound"`
ConnectionStatus p2p.ConnectionStatus `json:"connection_status"`
}
type ResultABCIInfo ¶
type ResultABCIInfo struct {
Response abci.ResponseInfo `json:"response"`
}
type ResultABCIQuery ¶
type ResultABCIQuery struct {
*abci.ResultQuery `json:"response"`
}
type ResultBlock ¶
type ResultBlockchainInfo ¶
type ResultBroadcastTx ¶
type ResultBroadcastTxCommit ¶
type ResultCommit ¶
type ResultCommit struct {
// SignedHeader is header and commit, embedded so we only have
// one level in the json output
types.SignedHeader
CanonicalCommit bool `json:"canonical"`
}
func NewResultCommit ¶
NewResultCommit is a helper to initialize the ResultCommit with the embedded struct
type ResultDialSeeds ¶
type ResultDialSeeds struct {
Log string `json:"log"`
}
type ResultDumpConsensusState ¶
type ResultDumpConsensusState struct {
RoundState *cstypes.RoundState `json:"round_state"`
PeerRoundStates map[string]*cstypes.PeerRoundState `json:"peer_round_states"`
}
type ResultEvent ¶
type ResultEvent struct {
Name string `json:"name"`
Data types.TMEventData `json:"data"`
}
type ResultGenesis ¶
type ResultGenesis struct {
Genesis *types.GenesisDoc `json:"genesis"`
}
type ResultNetInfo ¶
type ResultStatus ¶
type ResultStatus struct {
NodeInfo *p2p.NodeInfo `json:"node_info"`
PubKey crypto.PubKey `json:"pub_key"`
LatestBlockHash data.Bytes `json:"latest_block_hash"`
LatestAppHash data.Bytes `json:"latest_app_hash"`
LatestBlockHeight int `json:"latest_block_height"`
LatestBlockTime int64 `json:"latest_block_time"` // nano
Syncing bool `json:"syncing"`
}
func (*ResultStatus) TxIndexEnabled ¶
func (s *ResultStatus) TxIndexEnabled() bool
type ResultSubscribe ¶
type ResultSubscribe struct{}
type ResultUnconfirmedTxs ¶
type ResultUnsafeFlushMempool ¶
type ResultUnsafeFlushMempool struct{}
type ResultUnsafeProfile ¶
type ResultUnsafeProfile struct{}
type ResultUnsubscribe ¶
type ResultUnsubscribe struct{}
type ResultValidators ¶
Click to show internal directories.
Click to hide internal directories.