Skip to Content
Symmio Trading-SDK — the SDK surface for builders on Arbitrum
CoreInstantLayergetRevocationCooldown

getRevocationCooldown

Read the Instant Layer’s global delegation revocation cooldown, in seconds.

import { getRevocationCooldown } from "@symmio/trading-core"; const cooldownSeconds = await getRevocationCooldown(config, {});

This is the delay the two-step revocation enforces. initiateRevokeDelegation stamps pendingRevocationEta = block.timestamp + revocationCooldown; finalizeRevokeDelegation reverts until that ETA passes.

This value is the size of the residual authority window, not a countdown for any particular revocation. To know when a specific one lands, read getPendingRevocationEtas.

Surface it wherever you offer revocation, so a user learns before they start that a compromised key keeps signing for the cooldown’s duration.

Parameters

chainIdnumberoptional

Optional chain override.

Returns

bigint
The cooldown in seconds, as configured on the chain’s Instant Layer.

Query options

import { getRevocationCooldownQueryOptions } from "@symmio/trading-core"; import { useQuery } from "@tanstack/react-query"; useQuery(getRevocationCooldownQueryOptions(config, {}));

The React binding is useRevocationCooldown.

Last updated on