Skip to main content

transactionRequest

Interfaces

L1ToL2TransactionRequest

A transaction request for a transaction that will trigger some sort of execution on the L2

Properties

PropertyTypeDescription
retryableDataOmitTyped<L1ToL2MessageNoGasParams, "excessFeeRefundAddress" | "callValueRefundAddress"> & Partial<L1ToL2MessageNoGasParams> & L1ToL2MessageGasParamsInformation about the retryable ticket, and it's subsequent execution, that
will occur on L2
txRequestRequired<Pick<TransactionRequest, "data" | "value" | "to" | "from">>Core fields needed to form the L1 component of the transaction request

Methods

isValid()
isValid(): Promise<boolean>

If this request were sent now, would it have enough margin to reliably succeed

Returns

Promise<boolean>

Source

dataEntities/transactionRequest.ts:28


L2ToL1TransactionRequest

A transaction request for a transaction that will trigger an L2 to L1 message

Properties

PropertyTypeDescription
estimateL1GasLimit(l1Provider: Provider) => 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.

Functions

isL1ToL2TransactionRequest()

function isL1ToL2TransactionRequest<T>(possibleRequest: L1ToL2TransactionRequest | IsNotTransactionRequest<T>): possibleRequest is L1ToL2TransactionRequest

Check if an object is of L1ToL2TransactionRequest type

Type parameters

Type parameter
T

Parameters

ParameterTypeDescription
possibleRequestL1ToL2TransactionRequest | IsNotTransactionRequest<T>

Returns

possibleRequest is L1ToL2TransactionRequest

Source

dataEntities/transactionRequest.ts:57


isL2ToL1TransactionRequest()

function isL2ToL1TransactionRequest<T>(possibleRequest: L2ToL1TransactionRequest | IsNotTransactionRequest<T>): possibleRequest is L2ToL1TransactionRequest

Check if an object is of L2ToL1TransactionRequest type

Type parameters

Type parameter
T

Parameters

ParameterTypeDescription
possibleRequestL2ToL1TransactionRequest | IsNotTransactionRequest<T>

Returns

possibleRequest is L2ToL1TransactionRequest

Source

dataEntities/transactionRequest.ts:68