Monitor VRF Requests on Arc: Events, Status and Recovery
Design a D20DAO VRF dashboard on Arc: index request events, separate proof acceptance from delivery, recover missed blocks and retain public evidence.
Give each request an operational record
An application operator needs to answer a concrete question: did this request receive a result, or is the dashboard missing an update? A single green transaction badge cannot answer it.
Arc House's November 12 guest post about Arckive describes building application views from indexed contract events. D20DAO's public request lifecycle provides a useful case for that approach. This guide proposes a dashboard data model and recovery checks for an Arc integration. The design keeps ingestion progress, accepted randomness and application delivery visible separately.
Keep request identities and log identities distinct
Identify a request by chain ID, coordinator proxy and request ID. Retain its consumer, application operation ID, request transaction, block reference and deadline. Obtain coordinator and registry addresses from the selected network's manifest; mainnet and testnet need separate records.
Give each captured log its own identity, such as chain ID, transaction hash and log index. Store the emitter, block number, block hash, topics and data alongside decoded fields. One transaction can contain several requests and several events for each request, so deduplicating by transaction hash alone loses information.
Join the request to its epoch evidence
Capture RandomnessRequested and MappingRequested from the coordinator. Read getRequest for the request's epoch context and flags. On Arc, a paid request can exist before its epoch packet is published; publication resolves the epoch hash and randomness target.
Store EpochCommitted from the registry as an epoch record, keyed by chain, registry and epoch ID. Several requests can use that record. Joining an epoch publication to a request does not mark the request fulfilled: its own proof still needs acceptance. Keep the request block and target block as separate fields.
Project acceptance and delivery separately
Use RandomnessFulfilled to record an accepted word, and CallbackAttempted to record each delivery attempt. Reconcile these observations with getRequest: fulfilled means the word is final, while delivered reports successful callback delivery. A failed callback preserves fulfillment; a later successful retry updates delivery using the same word.
Keep refunded state separate too. RequestRefundedTo can report either a payment or backed credit through its paid flag. A successful batch transaction is also insufficient to mark every listed request fulfilled: FulfillmentSkipped records members left unchanged. Retain its reason and inspect that request's state.
Make ingestion safe to restart
For the application pipeline, commit captured logs, updated request rows and the completed-range cursor together in one database transaction. Deduplicate repeated logs before applying projections. Preserve undecodable records and surface a decoding error instead of silently omitting them from a supposedly complete view.
Arc's indexing guidance uses block number and log index for ordering because sub-second blocks can share timestamps. Consume committed chain data and retain a durable cursor for backfill after disconnects. Deterministic finality does not make an RPC response complete or a database write successful; ingestion still needs recovery and coverage tracking.
Show observation lag before declaring expiry
Display the indexed-through block, the query endpoint's observed head and the last successful ingestion time. A block notification can arrive before another RPC node can answer its logs. Advance the cursor only through a range whose query coverage the pipeline has established.
A missing fulfillment row is therefore not enough to declare expiry. Reconcile against current chain state and its block timestamp. Proof acceptance is timely at or before the stored deadline; an unfulfilled request becomes refundable strictly after it. If ingestion or chain reads are unavailable, show an unresolved state rather than starting a replacement request.
Retain enough evidence for a separate verification
Store FulfillmentEvidence with its transcript hash and packet, alongside the epoch packet and original receipt references. Keep implementation and configuration history available for the relevant blocks.
A dashboard projection is an operational view. Independent verification additionally checks canonical receipts, the epoch and request context, the beacon evidence, VRF proof and mapping. Give operators a link to the exact Explorer request and preserve unresolved checks. A database row saying fulfilled does not establish that the application applied the promised outcome.
Exercise failures before relying on the dashboard
Use these cases as an acceptance plan for the proposed pipeline:
- Process the same log range twice without duplicating requests, events or application notifications.
- Restart between ingestion and cursor advancement; recover the range without losing an update.
- Show a fulfilled request with failed delivery, then preserve its word when delivery succeeds later.
- Handle an epoch published after its request and a batch containing skipped members.
- Expose RPC lag, missing historical context and decoding errors instead of reporting false completeness.