Skip to main content

lib

Functions

getFirstBlockForL1Block()

function getFirstBlockForL1Block(__namedParameters: GetFirstBlockForL1BlockProps): Promise<number | undefined>

This function performs a binary search to find the first Arbitrum block that corresponds to a given L1 block number. The function returns a Promise that resolves to a number if a block is found, or undefined otherwise.

Parameters

ParameterType
__namedParametersGetFirstBlockForL1BlockProps

Returns

Promise<number | undefined>

  • A Promise that resolves to a number if a block is found, or undefined otherwise.

Source

utils/lib.ts:89


getTransactionReceipt()

function getTransactionReceipt(
provider: Provider,
txHash: string,
confirmations?: number,
timeout?: number): Promise<null | TransactionReceipt>

Waits for a transaction receipt if confirmations or timeout is provided Otherwise tries to fetch straight away.

Parameters

ParameterTypeDescription
providerProvider
txHashstring
confirmations?number
timeout?number

Returns

Promise<null | TransactionReceipt>

Source

utils/lib.ts:32