transactions

package
v1.9.7-0...-b95a16d Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: LGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwaitBlocks

func AwaitBlocks(ctx context.Context, sleepTime time.Duration) error

func AwaitTransactions

func AwaitTransactions(ctx context.Context, hashes ...libcommon.Hash) (map[libcommon.Hash]uint64, error)

func CheckTxPoolContent

func CheckTxPoolContent(ctx context.Context, expectedPendingSize, expectedQueuedSize, expectedBaseFeeSize int)

func CreateManyEIP1559TransactionsHigherThanBaseFee

func CreateManyEIP1559TransactionsHigherThanBaseFee(ctx context.Context, to, from string, count int) ([]types.Transaction, error)

func CreateManyEIP1559TransactionsRefWithBaseFee

func CreateManyEIP1559TransactionsRefWithBaseFee(ctx context.Context, to, from string, logger log.Logger) ([]types.Transaction, []types.Transaction, error)

func CreateManyEIP1559TransactionsRefWithBaseFee2

func CreateManyEIP1559TransactionsRefWithBaseFee2(ctx context.Context, to, from string, count int) ([]types.Transaction, []types.Transaction, error)

func CreateTransaction

func CreateTransaction(node devnet.Node, to, from string, value uint64) (types.Transaction, libcommon.Address, error)

createNonContractTx returns a signed transaction and the recipient address

func SendManyTransactions

func SendManyTransactions(ctx context.Context, signedTransactions []types.Transaction) ([]libcommon.Hash, error)

func SendTxLoad

func SendTxLoad(ctx context.Context, to, from string, amount uint64, txPerSec uint) error

func SendTxWithDynamicFee

func SendTxWithDynamicFee(ctx context.Context, to, from string, amount uint64) ([]libcommon.Hash, error)

func Transfer

func Transfer(ctx context.Context, toAddr, fromAddr string, value uint64, wait bool) (libcommon.Hash, error)

Types

type Block

type Block struct {
	Number       *hexutil.Big
	Transactions []libcommon.Hash
	BlockHash    libcommon.Hash
}

Block represents a simple block for queries

Jump to

Keyboard shortcuts

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