Type Alias: TransactionManagerConfig
type TransactionManagerConfig: {
abis: Record<string, Abi>;
account: Account;
baseFeePercentageMargin: bigint;
blockTime: bigint;
chain: Chain;
eip1559: EIP1559Parameters;
finalizedTransactionPurgeTime: number;
gasEstimator: GasEstimator;
maxPriorityFeePerGas: bigint;
rpcAllowDebug: boolean;
transport: Transport;
};Type declaration
abis
abis: Record<string, Abi>;The ABIs used by the TransactionManager. This is a record of aliases to ABIs. The aliases are used to reference the ABIs in the transactions.
account
account: Account;The account used for transactions. See Account from viem for more details.
baseFeePercentageMargin?
optional baseFeePercentageMargin: bigint;Safety margin for transaction base fees, expressed as a percentage. For example, a 20% increase should be represented as 20n.
This is used to calculate the maximum fee per gas and safeguard from unanticipated or unpredictable gas price increases, in particular when the transaction cannot be included in the very next block.
If not provided, defaults to 20n (20% increase).
blockTime?
optional blockTime: bigint;The expected interval (in seconds) for the creation of a new block on the blockchain. Defaults to 2 seconds.
chain
chain: Chain;The blockchain network configuration. See Chain from viem for more details.
eip1559?
optional eip1559: EIP1559Parameters;Optional EIP-1559 parameters. If not provided, defaults to the OP stack's stock parameters.
finalizedTransactionPurgeTime?
optional finalizedTransactionPurgeTime: number;The time (in milliseconds) after which finalized transactions are purged from the database. If finalizedTransactionPurgeTime is 0, finalized transactions are not purged from the database. Defaults to 2 minutes.
gasEstimator?
optional gasEstimator: GasEstimator;The gas estimator to use for estimating the gas limit of a transaction. You can provide your own implementation to override the default one. Default: DefaultGasLimitEstimator
maxPriorityFeePerGas?
optional maxPriorityFeePerGas: bigint;Optional maximum priority fee per gas. This is the maximum amount of wei per gas the transaction is willing to pay as a tip to miners. If not provided, defaults to 0n.
rpcAllowDebug?
optional rpcAllowDebug: boolean;Enables debug methods on the RPC node. This is necessary for retrieving revert reasons for failed transactions and for increasing precision in managing transactions that fail due to out-of-gas errors Defaults to false.
transport
transport: Transport;The transport protocol used for the client. See Transport from viem for more details.