Documentation ¶
Index ¶
- type RPC
- func (rpc *RPC) BroadcastTx(txType string, data string, version int64, time int64, stackID string, ...) (core_types.ResultBroadcastTx, error)
- func (rpc *RPC) BroadcastTxCommit(txType string, data string, version int64, time int64, stackID string, ...) (core_types.ResultBroadcastTxCommit, error)
- func (rpc *RPC) BroadcastTxWithMeta(txType string, data string, version int64, time int64, stackID string, ...) (core_types.ResultBroadcastTx, error)
- func (rpc *RPC) GetAbciInfo() (types.AnchorState, error)
- func (rpc *RPC) GetAllJWKs() ([]types.Tx, error)
- func (rpc *RPC) GetAnchoringCore(queryLine string) (string, error)
- func (rpc *RPC) GetBTCCTx(btcMonObj types.BtcMonMsg) (hash []byte)
- func (rpc *RPC) GetCalTxRange(minTxInt int64, maxTxInt int64) ([]core_types.ResultTx, error)
- func (rpc *RPC) GetGenesis() (core_types.ResultGenesis, error)
- func (rpc *RPC) GetNetInfo() (core_types.ResultNetInfo, error)
- func (rpc *RPC) GetStatus() (core_types.ResultStatus, error)
- func (rpc *RPC) GetTxByHash(txid string) (core_types.ResultTx, error)
- func (rpc *RPC) GetTxByInt(txInt int64) (core_types.ResultTxSearch, error)
- func (rpc *RPC) GetValidators(height int64) (core_types.ResultValidators, error)
- func (rpc *RPC) LogError(err error) error
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) GetAllJWKs ¶
getAllJWKs gets all JWK TXs
func (*RPC) GetAnchoringCore ¶
GetAnchoringCore : gets core to whom last anchor is attributed
func (*RPC) GetCalTxRange ¶
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