Docs / SDK

Finality

waitForFinalized() and finalityEta().

A receipt means your transaction is in an Elysium block. Finalized means the batch holding that block has landed on HyperEVM. Batches come roughly every 15 minutes.

isFinalized(blockNumber)

if (await elysium.isFinalized(sent.blockNumber)) release();

waitForFinalized(hashOrBlock)

await elysium.waitForFinalized(sent.hash, {
  pollMs: 15000,
  onProgress: ({ blocksToGo }) => console.log(blocksToGo, "blocks to go"),
});

Resolves with { blockNumber, finalized, waitedMs } and times out after 45 minutes by default.

finalityEta()

const { etaS, everyS } = await elysium.finalityEta();
// next batch in about etaS seconds (one every everyS)

It uses the batch cadence the counter measures, not the documented one.