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.

GET/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"
Parameters
ParameterDescription
cursor

query · 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).
chain

path · 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.

Response fields of The most recently verified contracts on a chain
FieldTypeDescription
contractsobject[]Newest verification first. [] when there are none.
contracts[].addressstringThe contract.
contracts[].namestring | nullThe contract name its verified source declares; null when not given.
contracts[].verifiedAtintegerUnix seconds of the verification.
contracts[].languagestring | nullThe source language, e.g. "solidity"; null when not given.
contracts[].compilerVersionstring | nullThe compiler version, as published; null when not given.
contracts[].optimizationEnabledboolean | nullWhether it was compiled with the optimizer; null when not given.
contracts[].licenseTypestring | nullThe declared license, e.g. "mit" or "none"; null when not given.
contracts[].proxyTypestring | nullThe proxy pattern, e.g. "eip1967_beacon"; null when it is not a proxy or it is not known.
contracts[].implementationsstring[]The implementation contracts a proxy points to. [] for none.
contracts[].transactionsCountinteger | nullTransactions sent to the contract. 0 is a real zero; null when not counted.
contracts[].balanceWeistring | nullIts balance of the chain's native coin, in wei, as a decimal string. "0" is a real zero; null when not known.
nextCursorstring | nullPass 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