Contracts API
The most recently verified contracts on a chain
The chain's verified contracts, newest verification first, 50 per page: address, name, verification time, compiler, license, proxy type, transaction count and balance. RHC only.
/api/external/contract-analysis/recent-contracts/{chain}What it returns
The contracts on one chain whose source code was most recently verified, newest verification first, 50 per page. Each row gives the address, the contract name, when it was verified, the language, compiler version, optimization flag and license, its proxy type and implementations, its transaction count and its native balance. Only VERIFIED contracts are listed: a contract deployed without published source is not in this list, and rows carry no deployment block or time. Keep passing nextCursor back as cursor until it is null.
Chains
- Robinhood Chain RHC
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/contract-analysis/recent-contracts/RHC"
| Parameter | Description |
|---|---|
cursorquery · string · optional | An opaque cursor from a previous response's nextCursor, for the next page. It only pages the chain it was issued for; an empty one, or one over 256 characters, is a 400 (enforced after the API-key gate). |
chainpath · string · required | RHC only; 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 |
|---|---|---|
contracts | object[] | Newest verification first. [] when there are none. |
contracts[].address | string | The contract. |
contracts[].name | string | null | The contract name its verified source declares; null when not given. |
contracts[].verifiedAt | integer | Unix seconds of the verification. |
contracts[].language | string | null | The source language, e.g. "solidity"; null when not given. |
contracts[].compilerVersion | string | null | The compiler version, as published; null when not given. |
contracts[].optimizationEnabled | boolean | null | Whether it was compiled with the optimizer; null when not given. |
contracts[].licenseType | string | null | The declared license, e.g. "mit" or "none"; null when not given. |
contracts[].proxyType | string | null | The proxy pattern, e.g. "eip1967_beacon"; null when it is not a proxy or it is not known. |
contracts[].implementations | string[] | The implementation contracts a proxy points to. [] for none. |
contracts[].transactionsCount | integer | null | Transactions sent to the contract. 0 is a real zero; null when not counted. |
contracts[].balanceWei | string | null | Its balance of the chain's native coin, in wei, as a decimal string. "0" is a real zero; null when not known. |
nextCursor | string | null | Pass back as cursor for the next page. null on the last page. |
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