Skip to content
D20DAO

Which Block Number Does a Robinhood Chain VRF Request Use?

Distinguish Robinhood block heights, Solidity block.number and Ethereum estimates when recording D20DAO VRF requests. Keep timestamp deadlines separate.

A mismatch can mean two different counters

An application compares a request receipt's blockNumber with a consumer helper that returns Solidity's block.number. The values differ. Before declaring the receipt stale or the request incorrect, check which counter each value represents.

Robinhood Chain's official documentation says block.number returns a periodically updated estimate of the Ethereum block number, not the Robinhood Chain height. D20DAO's Robinhood coordinator deliberately uses the chain's own height for requestBlock. This guide explains how to keep those meanings intact in a consumer, indexer or support record.

Name the clock before comparing values

These similarly named values serve different purposes on Robinhood Chain:

  1. Solidity block.number: an estimate of Ethereum's height, updated periodically.
  2. ArbSys at 0x64, through arbBlockNumber(): the current Robinhood Chain height inside a contract.
  3. A Robinhood transaction receipt's standard blockNumber: its child-chain height under Arbitrum's RPC conventions.
  4. l1BlockNumber, where exposed: the separate approximate ancestor-chain height. Do not assume every provider or client library returns this extra field.

D20DAO stores the Robinhood height

The current Robinhood coordinator obtains requestBlock through ArbitrumBlocks.number(). That helper calls ArbSys's arbBlockNumber and requires a successful response containing one ABI word. If that call is unavailable or malformed, it reverts rather than substituting Solidity block.number.

The coordinator stores this value, emits it in RandomnessRequested and returns it through getRoundRequest. It also binds requestBlock into the VRF input alongside the other fixed request fields. Replacing it with an Ethereum estimate changes the context being verified; it is not a harmless display conversion.

Compare the stored height with the request's own receipt

An indexer can compare the stored requestBlock with the standard blockNumber of that request's Robinhood receipt. This is a consistency check inferred from the coordinator and RPC definitions, not a comparison performed for this guide. Keep chain ID, coordinator, request ID and transaction identity with the comparison.

Use the request receipt, not an Ethereum funding or batch-posting receipt and not the later fulfillment receipt. If one transaction opens several requests, match the request's event and consumer too. Preserve its block hash and canonical receipt context; agreeing numbers alone do not establish canonical chain inclusion.

A block search window is not a time deadline

D20DAO's current Robinhood request deadline is derived from block.timestamp. Its acceptance rule uses seconds, not a fixed count of Robinhood or Ethereum blocks. Use the stored deadline and relevant chain timestamp when determining whether the service window remains open.

The SDK's public round-evidence reader uses requestBlock to bound log searches and fetch the request block's timestamp. Its configurable block search window controls where it looks; it does not extend a request's deadline. A missing event in a limited search range is therefore a lookup finding, not proof that a request could never have been fulfilled.

Keep height meanings visible in application records

Avoid one generic block field that receives whichever value a helper or provider happens to return. Label Robinhood request and fulfillment heights separately from any Ethereum estimate. Retain the raw receipt and identify the provider's extra fields without making them mandatory for every client.

Review existing helpers that return block.number before using them as an indexer's child-chain cursor. Normalizing a hexadecimal quantity to an integer changes its representation, not which counter it measures. Never repair a mismatch by copying one value over the other until their source and meaning are established.

Correct heights do not prove finality or randomness

An ancestor-height estimate is not evidence that the request's batch has been posted or settled on Ethereum. Keep settlement evidence separate from the numbers used to identify the request. Likewise, a correctly matched requestBlock is only one input check, not a complete VRF verification.

Block timestamps also have their own sequencing and inbox rules; neither height should be converted into a presumed timestamp. Preserve the actual request and acceptance timestamps and the historical implementation context. For a complete result review, use the dedicated verification guide rather than treating a successful height comparison as the final verdict.

Use acceptance cases that keep the counters distinct

Use these cases when reviewing your integration. They are requirements for implementation checks, not executed test results:

  1. Use different child-chain and Ethereum estimate values without overwriting either one.
  2. Match requestBlock to the correct Robinhood request receipt and event, preserving network and contract identity.
  3. Handle an omitted l1BlockNumber field without substituting it for the child-chain height.
  4. Reject an unavailable ArbSys result rather than silently falling back to block.number.
  5. Keep block-search limits, timestamp deadlines and Ethereum settlement findings separate.