tx_input

package
v0.0.0-...-d4ead40 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxInput

type TxInput struct {
	xc.TxInputEnvelope
	// Nonce of the account, incremented for each transaction
	Nonce uint64
	// GasLimit is the maximum amount of gas that can be used for the transaction
	GasLimit uint64
	// GasFeeCap is the maximum amount of gas fee that user is willing to pay
	GasFeeCap xc.AmountBlockchain
	// GasPremium is the amount of gas fee that user is willing to pay
	// per unit of gas
	GasPremium xc.AmountBlockchain
}

Filecoin TxInput

func NewTxInput

func NewTxInput() *TxInput

func (*TxInput) GetDriver

func (input *TxInput) GetDriver() xc.Driver

func (*TxInput) GetFeeLimit

func (input *TxInput) GetFeeLimit() (xc.AmountBlockchain, xc.ContractAddress)

func (*TxInput) IndependentOf

func (input *TxInput) IndependentOf(other xc.TxInput) (independent bool)

func (*TxInput) SafeFromDoubleSend

func (input *TxInput) SafeFromDoubleSend(others ...xc.TxInput) (safe bool)

func (*TxInput) SetGasFeePriority

func (input *TxInput) SetGasFeePriority(other xc.GasFeePriority) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳