Documentation
¶
Index ¶
- func New(chainID int64) transaction.Backend
- type Backend
- func (b *Backend) BalanceAt(context.Context, common.Address, *big.Int) (*big.Int, error)
- func (b *Backend) BlockNumber(context.Context) (uint64, error)
- func (b *Backend) CallContract(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)
- func (b *Backend) ChainID(context.Context) (*big.Int, error)
- func (b *Backend) Close()
- func (b *Backend) EstimateGasAtBlock(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) (uint64, error)
- func (b *Backend) FilterLogs(context.Context, ethereum.FilterQuery) ([]types.Log, error)
- func (b *Backend) HeaderByNumber(context.Context, *big.Int) (*types.Header, error)
- func (b *Backend) Metrics() []prometheus.Collector
- func (b *Backend) NonceAt(context.Context, common.Address, *big.Int) (uint64, error)
- func (b *Backend) PendingNonceAt(context.Context, common.Address) (uint64, error)
- func (b *Backend) SendTransaction(context.Context, *types.Transaction) error
- func (b *Backend) SuggestGasTipCap(context.Context) (*big.Int, error)
- func (b *Backend) SuggestedFeeAndTip(ctx context.Context, gasPrice *big.Int, boostPercent int) (*big.Int, *big.Int, error)
- func (b *Backend) TransactionByHash(context.Context, common.Hash) (tx *types.Transaction, isPending bool, err error)
- func (b *Backend) TransactionReceipt(context.Context, common.Hash) (*types.Receipt, error)
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) CallContract ¶
func (*Backend) EstimateGasAtBlock ¶
func (*Backend) FilterLogs ¶
func (*Backend) HeaderByNumber ¶
func (*Backend) Metrics ¶
func (b *Backend) Metrics() []prometheus.Collector
func (*Backend) PendingNonceAt ¶
func (*Backend) SendTransaction ¶
func (*Backend) SuggestGasTipCap ¶
func (*Backend) SuggestedFeeAndTip ¶
func (*Backend) TransactionByHash ¶
Click to show internal directories.
Click to hide internal directories.