Skip to main content

Module: message/L1ToL2MessageCreator

L1ToL2MessageCreator

Creates retryable tickets by directly calling the Inbox contract on L1

Methods

createRetryableTicket()

createRetryableTicket(
params,
l2Provider,
options?): Promise< L1ContractTransaction< L1TransactionReceipt > >

Creates a retryable ticket by directly calling the Inbox contract on L1

Parameters
ParameterType
paramsOmitTyped\< L1ToL2MessageNoGasParams, "excessFeeRefundAddress" | "callValueRefundAddress" > & Partial\< L1ToL2MessageNoGasParams > & {overrides: PayableOverrides;} | L1ToL2TransactionRequest & {overrides: PayableOverrides;}
l2ProviderProvider
options?GasOverrides
Returns

Promise\< L1ContractTransaction\< L1TransactionReceipt > >

Source

arbitrum-sdk/src/lib/message/L1ToL2MessageCreator.ts:149


getTicketCreationRequest()

static getTicketCreationRequest(
params,
l1Provider,
l2Provider,
options?): Promise< L1ToL2TransactionRequest >

Generate a transaction request for creating a retryable ticket

Parameters
ParameterTypeDescription
paramsL1ToL2MessageParams
l1ProviderProvider
l2ProviderProvider
options?GasOverrides
Returns

Promise\< L1ToL2TransactionRequest >

Source

arbitrum-sdk/src/lib/message/L1ToL2MessageCreator.ts:77


getTicketEstimate()

static protected getTicketEstimate(
params,
l1Provider,
l2Provider,
retryableGasOverrides?): Promise< Pick< RetryableData, L1ToL2GasKeys > >

Gets a current estimate for the supplied params

Parameters
ParameterTypeDescription
paramsL1ToL2MessageNoGasParams
l1ProviderProvider
l2ProviderProvider
retryableGasOverrides?GasOverrides
Returns

Promise\< Pick\< RetryableData, L1ToL2GasKeys > >

Source

arbitrum-sdk/src/lib/message/L1ToL2MessageCreator.ts:52