Documentation ¶
Index ¶
- Constants
- Variables
- func ABCIInfo() (*ctypes.ResultABCIInfo, error)
- func ABCIQuery(path string, data data.Bytes, prove bool) (*ctypes.ResultABCIQuery, error)
- func AddUnsafeRoutes()
- func Block(height int) (*ctypes.ResultBlock, error)
- func BlockchainInfo(minHeight, maxHeight int) (*ctypes.ResultBlockchainInfo, error)
- func BroadcastTxAsync(tx types.Tx) (*ctypes.ResultBroadcastTx, error)
- func BroadcastTxCommit(tx types.Tx) (*ctypes.ResultBroadcastTxCommit, error)
- func BroadcastTxSync(tx types.Tx) (*ctypes.ResultBroadcastTx, error)
- func Commit(height int) (*ctypes.ResultCommit, error)
- func DumpConsensusState() (*ctypes.ResultDumpConsensusState, error)
- func Genesis() (*ctypes.ResultGenesis, error)
- func NetInfo() (*ctypes.ResultNetInfo, error)
- func NumUnconfirmedTxs() (*ctypes.ResultUnconfirmedTxs, error)
- func SetAddrBook(book *p2p.AddrBook)
- func SetBlockStore(bs types.BlockStore)
- func SetConsensusState(cs Consensus)
- func SetEventSwitch(evsw types.EventSwitch)
- func SetGenesisDoc(doc *types.GenesisDoc)
- func SetLogger(l log.Logger)
- func SetMempool(mem types.Mempool)
- func SetProxyAppQuery(appConn proxy.AppConnQuery)
- func SetPubKey(pk crypto.PubKey)
- func SetSwitch(sw P2P)
- func SetTxIndexer(indexer txindex.TxIndexer)
- func Status() (*ctypes.ResultStatus, error)
- func Subscribe(wsCtx rpctypes.WSRPCContext, event string) (*ctypes.ResultSubscribe, error)
- func Tx(hash []byte, prove bool) (*ctypes.ResultTx, error)
- func UnconfirmedTxs() (*ctypes.ResultUnconfirmedTxs, error)
- func UnsafeDialSeeds(seeds []string) (*ctypes.ResultDialSeeds, error)
- func UnsafeFlushMempool() (*ctypes.ResultUnsafeFlushMempool, error)
- func UnsafeStartCPUProfiler(filename string) (*ctypes.ResultUnsafeProfile, error)
- func UnsafeStopCPUProfiler() (*ctypes.ResultUnsafeProfile, error)
- func UnsafeWriteHeapProfile(filename string) (*ctypes.ResultUnsafeProfile, error)
- func Unsubscribe(wsCtx rpctypes.WSRPCContext, event string) (*ctypes.ResultUnsubscribe, error)
- func Validators() (*ctypes.ResultValidators, error)
- type Consensus
- type P2P
Constants ¶
View Source
const Version = "3" // rpc routes for profiling, setting config
Variables ¶
View Source
var Routes = map[string]*rpc.RPCFunc{ "subscribe": rpc.NewWSRPCFunc(Subscribe, "event"), "unsubscribe": rpc.NewWSRPCFunc(Unsubscribe, "event"), "status": rpc.NewRPCFunc(Status, ""), "net_info": rpc.NewRPCFunc(NetInfo, ""), "blockchain": rpc.NewRPCFunc(BlockchainInfo, "minHeight,maxHeight"), "genesis": rpc.NewRPCFunc(Genesis, ""), "block": rpc.NewRPCFunc(Block, "height"), "commit": rpc.NewRPCFunc(Commit, "height"), "tx": rpc.NewRPCFunc(Tx, "hash,prove"), "validators": rpc.NewRPCFunc(Validators, ""), "dump_consensus_state": rpc.NewRPCFunc(DumpConsensusState, ""), "unconfirmed_txs": rpc.NewRPCFunc(UnconfirmedTxs, ""), "num_unconfirmed_txs": rpc.NewRPCFunc(NumUnconfirmedTxs, ""), "broadcast_tx_commit": rpc.NewRPCFunc(BroadcastTxCommit, "tx"), "broadcast_tx_sync": rpc.NewRPCFunc(BroadcastTxSync, "tx"), "broadcast_tx_async": rpc.NewRPCFunc(BroadcastTxAsync, "tx"), "abci_query": rpc.NewRPCFunc(ABCIQuery, "path,data,prove"), "abci_info": rpc.NewRPCFunc(ABCIInfo, ""), }
TODO: better system than "unsafe" prefix
Functions ¶
func ABCIInfo ¶ added in v0.8.0
func ABCIInfo() (*ctypes.ResultABCIInfo, error)
func AddUnsafeRoutes ¶ added in v0.10.0
func AddUnsafeRoutes()
func BlockchainInfo ¶
func BlockchainInfo(minHeight, maxHeight int) (*ctypes.ResultBlockchainInfo, error)
Returns at most 20 blocks
func BroadcastTxAsync ¶
func BroadcastTxAsync(tx types.Tx) (*ctypes.ResultBroadcastTx, error)
Returns right away, with no response
func BroadcastTxCommit ¶
func BroadcastTxCommit(tx types.Tx) (*ctypes.ResultBroadcastTxCommit, error)
CONTRACT: only returns error if mempool.BroadcastTx errs (ie. problem with the app) or if we timeout waiting for tx to commit. If CheckTx or DeliverTx fail, no error will be returned, but the returned result will contain a non-OK ABCI code.
func BroadcastTxSync ¶
func BroadcastTxSync(tx types.Tx) (*ctypes.ResultBroadcastTx, error)
Returns with the response from CheckTx
func DumpConsensusState ¶
func DumpConsensusState() (*ctypes.ResultDumpConsensusState, error)
func Genesis ¶
func Genesis() (*ctypes.ResultGenesis, error)
func NetInfo ¶
func NetInfo() (*ctypes.ResultNetInfo, error)
func NumUnconfirmedTxs ¶
func NumUnconfirmedTxs() (*ctypes.ResultUnconfirmedTxs, error)
func SetAddrBook ¶ added in v0.9.0
func SetBlockStore ¶
func SetBlockStore(bs types.BlockStore)
func SetConsensusState ¶
func SetConsensusState(cs Consensus)
func SetEventSwitch ¶
func SetEventSwitch(evsw types.EventSwitch)
func SetGenesisDoc ¶
func SetGenesisDoc(doc *types.GenesisDoc)
func SetMempool ¶ added in v0.7.3
func SetProxyAppQuery ¶ added in v0.7.1
func SetProxyAppQuery(appConn proxy.AppConnQuery)
func SetTxIndexer ¶ added in v0.9.1
func Status ¶
func Status() (*ctypes.ResultStatus, error)
func Subscribe ¶
func Subscribe(wsCtx rpctypes.WSRPCContext, event string) (*ctypes.ResultSubscribe, error)
func Tx ¶ added in v0.9.1
Tx allow user to query the transaction results. `nil` could mean the transaction is in the mempool, invalidated, or was not send in the first place.
func UnconfirmedTxs ¶
func UnconfirmedTxs() (*ctypes.ResultUnconfirmedTxs, error)
func UnsafeDialSeeds ¶ added in v0.7.4
func UnsafeDialSeeds(seeds []string) (*ctypes.ResultDialSeeds, error)
Dial given list of seeds
func UnsafeFlushMempool ¶
func UnsafeFlushMempool() (*ctypes.ResultUnsafeFlushMempool, error)
func UnsafeStartCPUProfiler ¶
func UnsafeStartCPUProfiler(filename string) (*ctypes.ResultUnsafeProfile, error)
func UnsafeStopCPUProfiler ¶
func UnsafeStopCPUProfiler() (*ctypes.ResultUnsafeProfile, error)
func UnsafeWriteHeapProfile ¶
func UnsafeWriteHeapProfile(filename string) (*ctypes.ResultUnsafeProfile, error)
func Unsubscribe ¶
func Unsubscribe(wsCtx rpctypes.WSRPCContext, event string) (*ctypes.ResultUnsubscribe, error)
func Validators ¶
func Validators() (*ctypes.ResultValidators, error)
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.