backendnoop

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(chainID int64) transaction.Backend

New creates a new no-op backend with the specified chain ID.

Types

type Backend

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

Backend is a no-op implementation for transaction.Backend interface. It's used when the blockchain functionality is disabled.

func (*Backend) BalanceAt

func (b *Backend) BalanceAt(context.Context, common.Address, *big.Int) (*big.Int, error)

func (*Backend) BlockNumber

func (b *Backend) BlockNumber(context.Context) (uint64, error)

func (*Backend) CallContract

func (b *Backend) CallContract(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)

func (*Backend) ChainID

func (b *Backend) ChainID(context.Context) (*big.Int, error)

func (*Backend) Close

func (b *Backend) Close()

func (*Backend) EstimateGasAtBlock

func (b *Backend) EstimateGasAtBlock(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) (uint64, error)

func (*Backend) FilterLogs

func (b *Backend) FilterLogs(context.Context, ethereum.FilterQuery) ([]types.Log, error)

func (*Backend) HeaderByNumber

func (b *Backend) HeaderByNumber(context.Context, *big.Int) (*types.Header, error)

func (*Backend) Metrics

func (b *Backend) Metrics() []prometheus.Collector

func (*Backend) NonceAt

func (b *Backend) NonceAt(context.Context, common.Address, *big.Int) (uint64, error)

func (*Backend) PendingNonceAt

func (b *Backend) PendingNonceAt(context.Context, common.Address) (uint64, error)

func (*Backend) SendTransaction

func (b *Backend) SendTransaction(context.Context, *types.Transaction) error

func (*Backend) SuggestGasTipCap

func (b *Backend) SuggestGasTipCap(context.Context) (*big.Int, error)

func (*Backend) SuggestedFeeAndTip

func (b *Backend) SuggestedFeeAndTip(ctx context.Context, gasPrice *big.Int, boostPercent int) (*big.Int, *big.Int, error)

func (*Backend) TransactionByHash

func (b *Backend) TransactionByHash(context.Context, common.Hash) (tx *types.Transaction, isPending bool, err error)

func (*Backend) TransactionReceipt

func (b *Backend) TransactionReceipt(context.Context, common.Hash) (*types.Receipt, error)

Jump to

Keyboard shortcuts

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