sender

package
v3.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_ALLOWED_GAS = uint64(2_500_000)

Variables

This section is empty.

Functions

func EstimateGas added in v3.0.1

func EstimateGas(msg sdk.Msg) (gas uint64, err error)

EstimateGas estimates the gas of the given message.

func GetMsgDetail

func GetMsgDetail(msg sdk.Msg) (detail string)

GetMsgDetail represents the detail string of a message for logging.

func GetMsgDetails

func GetMsgDetails(msgs ...sdk.Msg) (details []string)

GetMsgDetails extracts the detail from SDK messages.

Types

type Sender

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

Sender is a worker responsible for sending transactions to the node.

func New

func New(ctx *context.Context, receivers []*msg.ResponseReceiver) (*Sender, error)

New creates a new instance of the Sender worker.

func (*Sender) GetResponseReceivers added in v3.0.1

func (s *Sender) GetResponseReceivers() []*msg.ResponseReceiver

GetResponseReceivers returns the message response receivers of the worker.

func (*Sender) Start

func (s *Sender) Start()

Start starts the Sender worker.

func (*Sender) Stop

func (s *Sender) Stop() error

Stop stops the Sender worker.

Jump to

Keyboard shortcuts

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