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, ...) (string, error)
- func (n *Forwarder) Stop() error
- 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 ¶ added in v0.15.0
func (n *Forwarder) CheckTx(ctx context.Context, tx *commandspb.Transaction, cltIdx int) (*api.CheckTransactionResponse, error)
func (*Forwarder) LastBlockHeightAndHash ¶ added in v0.13.2
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) (string, error)
type StatusError ¶ added in v0.15.1
func (*StatusError) Error ¶ added in v0.15.1
func (e *StatusError) Error() string
Click to show internal directories.
Click to hide internal directories.