Documentation ¶
Index ¶
- func CreateEmptyBlobTx(withSidecar bool, chainID uint64) *types.BlobTx
- func PadGasEstimate(opts *bind.TransactOpts, paddingFactor float64, builder TxBuilder) (*types.Transaction, error)
- func RequireSendTx(t *testing.T, ctx context.Context, client *ethclient.Client, ...) (*types.Transaction, *types.Receipt)
- func SendTx(ctx context.Context, client *ethclient.Client, candidate txmgr.TxCandidate, ...) (*types.Transaction, *types.Receipt, error)
- func TransactionsBySender(block *types.Block, sender common.Address) (int64, error)
- type SendTxOpt
- type TxBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEmptyBlobTx ¶ added in v1.4.2
with thanks to fjl https://github.com/ethereum/go-ethereum/commit/2a6beb6a39d7cb3c5906dd4465d65da6efcc73cd
func PadGasEstimate ¶
func PadGasEstimate(opts *bind.TransactOpts, paddingFactor float64, builder TxBuilder) (*types.Transaction, error)
PadGasEstimate multiplies the gas estimate for a transaction by the specified paddingFactor before sending the actual transaction. Useful for cases where the gas required is variable. The builder will be invoked twice, first with NoSend=true to estimate the gas and the second time with NoSend=false and GasLimit including the requested padding.
func RequireSendTx ¶ added in v1.7.7
func RequireSendTx(t *testing.T, ctx context.Context, client *ethclient.Client, candidate txmgr.TxCandidate, privKey *ecdsa.PrivateKey, opts ...SendTxOpt) (*types.Transaction, *types.Receipt)
Types ¶
type SendTxOpt ¶ added in v1.7.7
type SendTxOpt func(cfg *sendTxCfg)
func WithReceiptFail ¶ added in v1.7.7
func WithReceiptFail() SendTxOpt
func WithReceiptStatusIgnore ¶ added in v1.9.0
func WithReceiptStatusIgnore() SendTxOpt
type TxBuilder ¶
type TxBuilder func(opts *bind.TransactOpts) (*types.Transaction, error)
TxBuilder creates and sends a transaction using the supplied bind.TransactOpts. Returns the created transaction and any error reported.
Click to show internal directories.
Click to hide internal directories.