Documentation
¶
Index ¶
- func RegisterAmino(cdc *amino.Codec)
- type Peer
- type PeerStateInfo
- type ResultABCIInfo
- type ResultABCIQuery
- type ResultBlock
- type ResultBlockResults
- type ResultBlockchainInfo
- type ResultBroadcastTx
- type ResultBroadcastTxCommit
- type ResultCommit
- type ResultConsensusState
- type ResultDialPeers
- type ResultDialSeeds
- type ResultDumpConsensusState
- type ResultEvent
- type ResultGenesis
- type ResultHealth
- type ResultNetInfo
- type ResultStatus
- type ResultSubscribe
- type ResultTx
- type ResultUnconfirmedTxs
- type ResultUnsafeFlushMempool
- type ResultUnsafeProfile
- type ResultUnsubscribe
- type ResultValidators
- type SyncInfo
- type ValidatorInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAmino ¶ added in v0.19.0
func RegisterAmino(cdc *amino.Codec)
Types ¶
type Peer ¶
type Peer struct { p2p.NodeInfo `json:"node_info"` IsOutbound bool `json:"is_outbound"` ConnectionStatus p2p.ConnectionStatus `json:"connection_status"` }
A peer
type PeerStateInfo ¶ added in v0.19.3
type PeerStateInfo struct { NodeAddress string `json:"node_address"` PeerState json.RawMessage `json:"peer_state"` }
UNSTABLE
type ResultABCIInfo ¶ added in v0.8.0
type ResultABCIInfo struct {
Response abci.ResponseInfo `json:"response"`
}
Info abci msg
type ResultABCIQuery ¶ added in v0.8.0
type ResultABCIQuery struct {
Response abci.ResponseQuery `json:"response"`
}
Query abci msg
type ResultBlock ¶
type ResultBlock struct { BlockMeta *types.BlockMeta `json:"block_meta"` Block *types.Block `json:"block"` }
Single block (with meta)
type ResultBlockResults ¶ added in v0.15.0
type ResultBlockResults struct { Height int64 `json:"height"` Results *state.ABCIResponses `json:"results"` }
ABCI results from a block
type ResultBlockchainInfo ¶
type ResultBlockchainInfo struct { LastHeight int64 `json:"last_height"` BlockMetas []*types.BlockMeta `json:"block_metas"` }
List of blocks
type ResultBroadcastTx ¶
type ResultBroadcastTx struct { Code uint32 `json:"code"` Data cmn.HexBytes `json:"data"` Log string `json:"log"` Hash cmn.HexBytes `json:"hash"` }
CheckTx result
type ResultBroadcastTxCommit ¶ added in v0.8.0
type ResultBroadcastTxCommit struct { CheckTx abci.ResponseCheckTx `json:"check_tx"` DeliverTx abci.ResponseDeliverTx `json:"deliver_tx"` Hash cmn.HexBytes `json:"hash"` Height int64 `json:"height"` }
CheckTx and DeliverTx results
type ResultCommit ¶ added in v0.9.0
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"` }
Commit and Header
func NewResultCommit ¶ added in v0.12.0
NewResultCommit is a helper to initialize the ResultCommit with the embedded struct
type ResultConsensusState ¶ added in v0.19.3
type ResultConsensusState struct {
RoundState json.RawMessage `json:"round_state"`
}
UNSTABLE
type ResultDialPeers ¶ added in v0.16.0
type ResultDialPeers struct {
Log string `json:"log"`
}
Log from dialing peers
type ResultDialSeeds ¶
type ResultDialSeeds struct {
Log string `json:"log"`
}
Log from dialing seeds
type ResultDumpConsensusState ¶
type ResultDumpConsensusState struct { RoundState json.RawMessage `json:"round_state"` Peers []PeerStateInfo `json:"peers"` }
Info about the consensus state. UNSTABLE
type ResultEvent ¶
type ResultEvent struct { Query string `json:"query"` Data types.TMEventData `json:"data"` }
Event data from a subscription
type ResultGenesis ¶
type ResultGenesis struct {
Genesis *types.GenesisDoc `json:"genesis"`
}
Genesis file
type ResultNetInfo ¶
type ResultNetInfo struct { Listening bool `json:"listening"` Listeners []string `json:"listeners"` NPeers int `json:"n_peers"` Peers []Peer `json:"peers"` }
Info about peer connections
type ResultStatus ¶
type ResultStatus struct { NodeInfo p2p.NodeInfo `json:"node_info"` SyncInfo SyncInfo `json:"sync_info"` ValidatorInfo ValidatorInfo `json:"validator_info"` }
Node Status
func (*ResultStatus) TxIndexEnabled ¶ added in v0.9.1
func (s *ResultStatus) TxIndexEnabled() bool
Is TxIndexing enabled
type ResultTx ¶ added in v0.9.1
type ResultTx struct { Hash cmn.HexBytes `json:"hash"` Height int64 `json:"height"` Index uint32 `json:"index"` TxResult abci.ResponseDeliverTx `json:"tx_result"` Tx types.Tx `json:"tx"` Proof types.TxProof `json:"proof,omitempty"` }
Result of querying for a tx
type ResultUnconfirmedTxs ¶
List of mempool txs
type ResultValidators ¶
type ResultValidators struct { BlockHeight int64 `json:"block_height"` Validators []*types.Validator `json:"validators"` }
Validators for a height
type SyncInfo ¶ added in v0.19.0
type SyncInfo struct { LatestBlockHash cmn.HexBytes `json:"latest_block_hash"` LatestAppHash cmn.HexBytes `json:"latest_app_hash"` LatestBlockHeight int64 `json:"latest_block_height"` LatestBlockTime time.Time `json:"latest_block_time"` Syncing bool `json:"syncing"` }
Info about the node's syncing state
Click to show internal directories.
Click to hide internal directories.