Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeStatus ¶
type NodeStatus struct {
NodeInfo p2p.DefaultNodeInfo `json:"node_info"`
SyncInfo tmrpctypes.SyncInfo `json:"sync_info"`
}
type RpcClient ¶
type RpcClient interface {
BroadcastTx(broadcastType string, tx tmtypes.Tx) (types.BroadcastTxResult, error)
GetNodeStatus() (NodeStatus, error)
GetTx(hash string) (Tx, error)
GetBlock(height int64) (*tmrpctypes.ResultBlock, error)
Subscribe(ctx context.Context, subscriber, query string) (out <-chan tmrpctypes.ResultEvent, err error)
UnSubscribe(ctx context.Context, subscriber, query string) error
UnSubscribeAll(ctx context.Context, subscriber string) error
Start() error
}
Click to show internal directories.
Click to hide internal directories.