tendermint_rpc

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPC

type RPC struct {
	// contains filtered or unexported fields
}

RPC : hold abstract http client for mocking purposes

func NewRPCClient

func NewRPCClient(tendermintRPC types.TendermintConfig, logger log.Logger) (rpc *RPC)

NewRPCClient : Creates a new client connected to a tendermint instance at web socket "tendermintRPC"

func (*RPC) BroadcastTx

func (rpc *RPC) BroadcastTx(txType string, data string, version int64, time int64, stackID string, privateKey *ecdsa.PrivateKey) (core_types.ResultBroadcastTx, error)

BroadcastTx : Synchronously broadcasts a transaction to the local Tendermint node

func (*RPC) BroadcastTxCommit

func (rpc *RPC) BroadcastTxCommit(txType string, data string, version int64, time int64, stackID string, privateKey *ecdsa.PrivateKey) (core_types.ResultBroadcastTxCommit, error)

BroadcastTxCommit : Synchronously broadcasts a transaction to the local Tendermint node THIS IS BLOCKING

func (*RPC) BroadcastTxWithMeta

func (rpc *RPC) BroadcastTxWithMeta(txType string, data string, version int64, time int64, stackID string, meta string, privateKey *ecdsa.PrivateKey) (core_types.ResultBroadcastTx, error)

BroadcastTx : Synchronously broadcasts a transaction to the local Tendermint node

func (*RPC) GetAbciInfo

func (rpc *RPC) GetAbciInfo() (types.AnchorState, error)

GetAbciInfo retrieves custom ABCI status struct detailing the state of our application

func (*RPC) GetAllCHNGSTK

func (rpc *RPC) GetAllCHNGSTK() ([]types.Tx, error)

GetAllCHNGSTK gets all change stake txs

func (*RPC) GetAllJWKs

func (rpc *RPC) GetAllJWKs() ([]types.Tx, error)

getAllJWKs gets all JWK TXs

func (*RPC) GetAnchoringCore

func (rpc *RPC) GetAnchoringCore(queryLine string) (string, error)

GetAnchoringCore : gets core to whom last anchor is attributed

func (*RPC) GetBTCCTx

func (rpc *RPC) GetBTCCTx(btcMonObj types.BtcMonMsg) (hash []byte)

GetBTCCTx: retrieves and verifies existence of btcc tx

func (*RPC) GetCalTxRange

func (rpc *RPC) GetCalTxRange(minTxInt int64, maxTxInt int64) ([]core_types.ResultTx, error)

GetTxRange gets all CAL TXs within a particular range

func (*RPC) GetGenesis

func (rpc *RPC) GetGenesis() (core_types.ResultGenesis, error)

GetGenesis : retrieves genesis file for initialization

func (*RPC) GetNetInfo

func (rpc *RPC) GetNetInfo() (core_types.ResultNetInfo, error)

GetNetInfo retrieves known peer information.

func (*RPC) GetStatus

func (rpc *RPC) GetStatus() (core_types.ResultStatus, error)

GetStatus retrieves status of our node.

func (*RPC) GetTxByHash

func (rpc *RPC) GetTxByHash(txid string) (core_types.ResultTx, error)

GetTxByHash : Retrieves a tx by its unique string ID (txid)

func (*RPC) GetTxByInt

func (rpc *RPC) GetTxByInt(txInt int64) (core_types.ResultTxSearch, error)

GetTxByInt : Retrieves a tx by its unique integer ID (txInt)

func (*RPC) GetValidators

func (rpc *RPC) GetValidators(height int64) (core_types.ResultValidators, error)

GetValidators : retrieves list of validators at a particular block height

func (*RPC) LogError

func (rpc *RPC) LogError(err error) error

LogError : log tendermintRpc errors

Jump to

Keyboard shortcuts

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