package
2.0.0+incompatible
Repository: https://github.com/okex/exchain.git
Documentation: pkg.go.dev

# README

Tendermint RPC

Pagination

Requests that return multiple items will be paginated to 30 items by default. You can specify further pages with the ?page parameter. You can also set a custom page size up to 100 with the ?per_page parameter.

Subscribing to events

The user can subscribe to events emitted by Tendermint, using /subscribe. If the maximum number of clients is reached or the client has too many subscriptions, an error will be returned. The subscription timeout is 5 sec. Each subscription has a buffer to accommodate short bursts of events or some slowness in clients. If the buffer gets full, the subscription will be canceled ("client is not pulling messages fast enough"). If Tendermint exits, all subscriptions are canceled ("Tendermint exited"). The user can unsubscribe using either /unsubscribe or /unsubscribe_all.

# Packages

No description provided by the author

# Functions

ABCIInfo gets some info about the application.
ABCIQuery queries the application for some information.
No description provided by the author
Block gets block at a given height.
BlockByHash gets block by hash.
BlockchainInfo gets block headers for minHeight <= height <= maxHeight.
BlockResults gets ABCIResults at a given height.
BroadcastEvidence broadcasts evidence of the misbehavior.
BroadcastTxAsync returns right away, with no response.
BroadcastTxCommit returns with the responses from CheckTx and DeliverTx.
BroadcastTxSync returns with the response from CheckTx.
Commit gets block commit at a given height.
No description provided by the author
ConsensusParams gets the consensus parameters at the given block height.
ConsensusState returns a concise summary of the consensus state.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DumpConsensusState dumps consensus state.
Genesis returns genesis file.
No description provided by the author
No description provided by the author
No description provided by the author
Health gets node health.
NetInfo returns network info.
NumUnconfirmedTxs gets number of unconfirmed transactions.
SetEnvironment sets up the given Environment.
Status returns Tendermint status including node info, pubkey, latest block hash, app hash, block height and time.
Subscribe for events via WebSocket.
Tx allows you to query the transaction results.
TxSearch allows you to query for multiple transactions results.
UnconfirmedTxs gets unconfirmed transactions (maximum ?limit entries) including their number.
UnsafeDialPeers dials the given peers (comma-separated id@IP:PORT), optionally making them persistent.
UnsafeDialSeeds dials the given seeds (comma-separated id@IP:PORT).
UnsafeFlushMempool removes all transactions from the mempool.
UnsafeStartCPUProfiler starts a pprof profiler using the given filename.
UnsafeStopCPUProfiler stops the running pprof profiler.
UnsafeWriteHeapProfile dumps a heap profile to the given filename.
Unsubscribe from events via WebSocket.
UnsubscribeAll from all events via WebSocket.
No description provided by the author
No description provided by the author
Validators gets the validator set at the given block height.

# Constants

SubscribeTimeout is the maximum time we wait to subscribe for an event.

# Variables

No description provided by the author

# Structs

---------------------------------------------- Environment contains objects and interfaces used by the RPC.

# Interfaces

No description provided by the author