Skip to main content

transactionRequest

Interfaces

L1ToL2TransactionRequest

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

Properties

PropertyTypeDescriptionDefined in
retryableDataOmitTyped<L1ToL2MessageNoGasParams, "excessFeeRefundAddress" | "callValueRefundAddress"> & Partial<L1ToL2MessageNoGasParams> & L1ToL2MessageGasParamsInformation about the retryable ticket, and it's subsequent execution, that will occur on L2dataEntities/transactionRequest.ts:24
txRequestRequired<Pick<TransactionRequest, "data" | "value" | "to" | "from">>Core fields needed to form the L1 component of the transaction requestdataEntities/transactionRequest.ts:17

Methods

isValid()
isValid(): Promise<boolean>

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

Returns

Promise<boolean>

Defined in

dataEntities/transactionRequest.ts:28


L2ToL1TransactionRequest

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

Properties

PropertyTypeDescriptionDefined in
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.dataEntities/transactionRequest.ts:44

Functions

isL1ToL2TransactionRequest()

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

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
possibleRequestL1ToL2TransactionRequest | IsNotTransactionRequest<T>

Returns

possibleRequest is L1ToL2TransactionRequest

Defined in

dataEntities/transactionRequest.ts:57


isL2ToL1TransactionRequest()

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

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
possibleRequestL2ToL1TransactionRequest | IsNotTransactionRequest<T>

Returns

possibleRequest is L2ToL1TransactionRequest

Defined in

dataEntities/transactionRequest.ts:68