Chains API
Total canonical-bridge deposits and withdrawals of an L2
How many deposits (parent chain into the L2) and withdrawals (L2 out to the parent chain) the L2's canonical bridge has carried in total. RHC, OP and SCROLL.
/api/external/chain-analysis/bridge-totals/{chain}What it returns
How many messages the L2's canonical bridge has carried in each direction: deposits from the parent chain into the L2, withdrawals from the L2 out to the parent chain. Counted since the rollup launched on RHC and SCROLL, and since the Bedrock upgrade (June 2023) on OP. These are the same messages bridge-transfers lists one by one. Both counts, or an error: never one alone.
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/bridge-totals/RHC"
| Parameter | Description |
|---|---|
chainpath · 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.
| Field | Type | Description |
|---|---|---|
deposits | integer | Messages from the parent chain into the L2. |
withdrawals | integer | Messages from the L2 out to the parent chain. |
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