Help us shape the future of Go! Take the 2026 Go Developer Survey

submitter

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 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
}

API represents something that can be used to submit transactions.

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