Documentation ¶
Index ¶
- Variables
- type ErrorCode
- type Forwarder
- func (n *Forwarder) CheckTx(ctx context.Context, tx *commandspb.Transaction, cltIdx int) (*api.CheckTransactionResponse, error)
- func (n *Forwarder) HealthCheck(ctx context.Context) error
- func (n *Forwarder) LastBlockHeightAndHash(ctx context.Context) (*api.LastBlockHeightResponse, int, error)
- func (n *Forwarder) SendTx(ctx context.Context, tx *commandspb.Transaction, ...) (*api.SubmitTransactionResponse, error)
- func (n *Forwarder) SpamStatistics(ctx context.Context, pubkey string) (*api.GetSpamStatisticsResponse, int, error)
- func (n *Forwarder) Stop()
- type StatusError
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoHostSpecified = errors.New("no host specified")
Functions ¶
This section is empty.
Types ¶
type Forwarder ¶
type Forwarder struct {
// contains filtered or unexported fields
}
func NewForwarder ¶
func (*Forwarder) CheckTx ¶
func (n *Forwarder) CheckTx(ctx context.Context, tx *commandspb.Transaction, cltIdx int) (*api.CheckTransactionResponse, error)
func (*Forwarder) LastBlockHeightAndHash ¶
func (n *Forwarder) LastBlockHeightAndHash(ctx context.Context) (*api.LastBlockHeightResponse, int, error)
LastBlockHeightAndHash returns information about the last block from vega and the node it used to fetch it.
func (*Forwarder) SendTx ¶
func (n *Forwarder) SendTx(ctx context.Context, tx *commandspb.Transaction, ty api.SubmitTransactionRequest_Type, cltIdx int) (*api.SubmitTransactionResponse, error)
func (*Forwarder) SpamStatistics ¶ added in v0.68.0
type StatusError ¶
func (*StatusError) Error ¶
func (e *StatusError) Error() string
Click to show internal directories.
Click to hide internal directories.