getEpoch
PQSafe AgentPay API Reference v0.1.0
PQSafe AgentPay API Reference / getEpoch
Function: getEpoch()
getEpoch(
_issuerAddress,_config):Promise<bigint>
Defined in: pqsafe/agent-pay/src/sprint2/revocation.ts:166
Get the current epoch for an issuer address.
Sprint 3 implementation will check:
- Cache (TTL 30s) — served from hosted issuer service.
- On cache miss: direct Arbitrum eth_call to the registry contract.
Parameters
_issuerAddress
string
_config
Pick<RevocationServiceConfig, "serviceUrl" | "apiKey">
Returns
Promise<bigint>
Throws
‘Sprint 2 — implementation queued’ until Sprint 3 ships.