Interface: L2ToL1TransactionRequest
dataEntities/transactionRequest.L2ToL1TransactionRequest
A transaction request for a transaction that will trigger an L2 to L1 message
Properties
estimateL1GasLimit
estimateL1GasLimit: (l1Provider
: Provider
) => Promise
<BigNumber
>
Type declaration
(l1Provider
): Promise
<BigNumber
>
Estimate the gas limit required to execute the withdrawal on L1. Note that this is only a rough estimate as it may not be possible to know the exact size of the proof straight away, however the real value should be within a few thousand gas of this estimate.
Parameters
Name | Type |
---|---|
l1Provider | Provider |
Returns
Promise
<BigNumber
>