Skip to content
D20DAO

Does a Successful VRF Batch Fulfill Every Request?

Read D20DAO batch receipts on Arc and Robinhood Chain. Separate skipped members, accepted proofs, callback delivery and reverted batch calls by request ID.

A successful transaction can contain skipped requests

No. A successful D20DAO batch transaction does not mean every listed request gained an accepted result. The Arc and Robinhood coordinators skip requests already fulfilled, refunded or past their deadline, recording FulfillmentSkipped for each skipped occurrence.

Consider a batch containing A, B and C. A already has an accepted word, B receives an accepted proof but its callback fails, and C is past its deadline. The transaction can succeed while producing only one new proof acceptance and no successful delivery for B. A dashboard must classify the requests individually rather than turn the entire batch green.

Build a result row for each request

Retain the chain, coordinator, transaction hash and receipt block reference. Decode the selected coordinator's logs with the correct network interface, then group its events by request ID. Preserve log order rather than assuming one event or one result per calldata position.

RandomnessFulfilled records an accepted word. CallbackAttempted reports a delivery attempt and its success flag. FulfillmentSkipped explains why an occurrence was left unchanged. Keep these observations in separate fields, and reconcile them with getRequest on Arc or getRoundRequest on Robinhood Chain. A request number alone is insufficient across different coordinators or networks.

Read a skip as an observation, not a new settlement

The current implementations use these reason codes:

  1. 1: already fulfilled. The request has an accepted word, but this occurrence did not accept another proof. This reason does not establish successful callback delivery.
  2. 2: refunded. This occurrence leaves the refunded request unchanged. Inspect its refund and credit records separately if you need to establish where the funds went.
  3. 3: past the deadline. The batch checks whether its block timestamp is strictly greater than the request's deadline. Skipping does not itself claim or pay the refund.

A skipped occurrence is not always a different request

Distinguish the batch's submitted positions from its unique request IDs. In the current loops, an eligible request is fulfilled before processing the next position. If the same ID occurs again later in that batch, the later occurrence encounters fulfilled state and is skipped with reason 1.

Do not interpret that skip as proof that fulfillment happened in an earlier transaction. Nor should two calldata positions become two newly served requests in a report. Count actual acceptance events by request identity and preserve the later skip as part of the transaction history. This is receipt interpretation, not a recommendation to submit duplicate IDs.

An accepted word can still need delivery

For B, a successful outer transaction with CallbackAttempted reporting false can preserve an accepted word while leaving delivered false. It is neither a skipped request nor an unfulfilled draw. The service's accepted-proof fee settlement also remains separate from consumer delivery.

Recovery should follow B's retained request and stored word. A callback retry is delivery recovery, not a new selection. Even successful callback delivery is narrower than application completion: the consumer may only store the word, leaving a worker to perform later application work. Read that application's own completion evidence before reporting the job finished.

Some failures revert the batch call

FulfillmentSkipped is not a catch-all error event. The current batch paths validate their inputs and gas budget, then call eligible fulfillment directly. An unknown request or invalid eligible proof can revert the batch call instead of producing a skip and continuing.

If that revert reaches the enclosing transaction, writes and events from it roll back, including earlier proof acceptance attempted in the batch. State accepted in an earlier transaction remains. If a wrapper catches an inner call's failure, the outer receipt may still report success; that does not restore the failed batch's changes. Require actual coordinator events and state rather than treating calldata as execution evidence.

A shared transaction does not merge proof contexts

Each served request retains its own accepted word, proof and transcript evidence. Arc requests bind their epoch and target context; Robinhood requests bind their assigned drand round. Sharing a transaction, or a Robinhood round signature within a batch, does not replace those individual request bindings.

When reviewing B, collect B's FulfillmentEvidence and original mapping rather than borrowing A's packet or interpreting the whole transaction as one draw. Verify canonical inclusion and historical configuration separately. A failed read leaves that finding unknown; it does not establish that a request was skipped or fulfilled.

Use acceptance cases for mixed receipts

Use these requirements when implementing a receipt reader. They are proposed cases, not executed test results:

  1. Classify already fulfilled, refunded and expired members without inventing new acceptances or refund payments.
  2. Preserve a newly accepted word when its callback fails, while keeping application completion separate.
  3. Handle a repeated ID as one request with multiple batch occurrences.
  4. Distinguish a reverted batch call from a failed callback and from a wrapper's successful outer transaction.
  5. Keep each request's proof, mapping, chain and coordinator identity attached to its own result record.