submitter

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	SendTransaction(ctx context.Context, tx sdk.Transaction, opts ...grpc.CallOption) error
}

type Submitter

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

Submitter submits transactions for execution.

func New

func New(api API) *Submitter

New creates a new Submitter that uses the given API.

func (*Submitter) Transaction

func (s *Submitter) Transaction(tx *sdk.Transaction) error

Transaction submits the given transaction for execution.

Jump to

Keyboard shortcuts

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