Chains API

How far an L2's settlement on its parent chain has come

The newest settlement batch number (RHC), the batches committed since launch (SCROLL) or the dispute games created (OP): one exact chain-wide settlement number per L2.

GET/api/external/chain-analysis/rollup-settlement-totals/{chain}

What it returns

One chain-wide settlement number per L2, the one kept exactly on that chain: the newest settlement batch number on RHC, the batches committed since launch on SCROLL, and the dispute games created on OP (the way OP settles its state). The other two fields are null on each chain: never estimated or derived. One batch's standing is in rollup-settlement, and OP's games one by one in dispute-games.

Chains

  • Robinhood Chain RHC
  • Optimism OP
  • Scroll SCROLL

Request

Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.

curl -H "x-dex-data-key: $DEXDATA_API_KEY" \
  "https://api.dexdata.io/api/external/chain-analysis/rollup-settlement-totals/RHC"
Parameters
ParameterDescription
chain

path · string · required

RHC, OP or SCROLL; every other chain returns 400.

Response fields

A JSON response. Every field is always present; null means the value could not be established, never zero.

Response fields of How far an L2's settlement on its parent chain has come
FieldTypeDescription
latestBatchNumberinteger | nullThe newest settlement batch posted to the parent chain. RHC only; null elsewhere.
batchCountinteger | nullSettlement batches committed since launch. SCROLL only; null elsewhere.
disputeGameCountinteger | nullDispute games created since the chain adopted them. OP only; null elsewhere.

Start building with DexData today

Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.

Get a free API key