rpc

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCClient

type RPCClient interface {
	BroadcastTx(broadcastType string, tx types.Tx) (itypes.BroadcastTxResult, error)
	GetStatus() (ResultStatus, error)
	GetTx(hash string) (ResultTx, error)
	Block(height int64) (*ctypes.ResultBlock, error)
}

func NewClient

func NewClient(nodeUrl string) RPCClient

type ResultStatus

type ResultStatus struct {
	NodeInfo p2p.DefaultNodeInfo `json:"node_info"`
}

type ResultTx

type ResultTx struct {
	Hash     string                 `json:"hash"`
	Height   int64                  `json:"height"`
	Index    uint32                 `json:"index"`
	TxResult abci.ResponseDeliverTx `json:"tx_result"`
	Tx       auth.StdTx             `json:"std_tx"`
	Proof    types.TxProof          `json:"proof,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL