Skip to main content

Module: dataEntities/transactionRequest

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

arbitrum-sdk/src/lib/dataEntities/transactionRequest.ts:28


L2ToL1TransactionRequest

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

Properties

PropertyType
estimateL1GasLimit(l1Provider) => Promise\< BigNumber >

isL1ToL2TransactionRequest()

isL1ToL2TransactionRequest&lt;T&gt;(possibleRequest): possibleRequest is L1ToL2TransactionRequest

Check if an object is of L1ToL2TransactionRequest type

Type parameters

Parameter
T

Parameters

ParameterTypeDescription
possibleRequestL1ToL2TransactionRequest | IsNotTransactionRequest\< T >

Returns

possibleRequest is L1ToL2TransactionRequest

Source

arbitrum-sdk/src/lib/dataEntities/transactionRequest.ts:57


isL2ToL1TransactionRequest()

isL2ToL1TransactionRequest&lt;T&gt;(possibleRequest): possibleRequest is L2ToL1TransactionRequest

Check if an object is of L2ToL1TransactionRequest type

Type parameters

Parameter
T

Parameters

ParameterTypeDescription
possibleRequestL2ToL1TransactionRequest | IsNotTransactionRequest\< T >

Returns

possibleRequest is L2ToL1TransactionRequest

Source

arbitrum-sdk/src/lib/dataEntities/transactionRequest.ts:68