Skip to main content
GET
cURL
This endpoint is only available for OpenApi users with paid subscription.
200 credits per request
In Query field “connectionId”: credits are multiplied by the number of values.
If the value of “connectionId” in Query is “all”, multiplier is 2000 credits.
In Query field “blockchain”: credits are multiplied by the number of values.
If the value of “blockchain” in Query is “all”, multiplier is 2000 credits.
Multipliers can be applied multiple times.

  • Token and native balances as they were at the given timestamp, on one EVM chain, a list of chains, or every EVM chain
  • Each chain is read at its last block at or before the timestamp; the block and its time are returned per chain
  • USD and BTC prices at that moment (hourly resolution for the last 7 days, daily before), each balance’s USD value, and totals per chain and overall
  • address: Wallet address to query
  • timestamp: the moment, as a Unix timestamp (seconds or milliseconds) or an ISO 8601 date such as 2025-01-01 (00:00 UTC that day) or date-time such as 2025-01-01T12:00:00Z
  • One of connectionId or blockchain (if both provided, connectionId is used):
    • Single value (e.g., “ethereum”)
    • Comma-separated values (“ethereum,base-wallet”)
    • “all” — every EVM chain (top-tier chains always included; others that take longer than 12 seconds are left out)
  • Omit both and an EVM address is queried on every EVM chain, like “all”.
  • With a list or “all”, a chain without a result does not fail the request: it is left out of chains, as on /wallet/balance (for example when it did not exist yet at that moment, its node keeps no history that old, or it did not answer in time).
  • A single-chain request returns an error instead: 400 for an unsupported chain or a timestamp before the chain existed, 422 when the chain’s node keeps no history that old.
  • Only EVM chains are supported. Tokens are the ones CoinStats tracks today on each chain.
  • Costs 5x a /wallet/balance call per chain; “all” (or an EVM address on its own) costs 10 chains, and a list never costs more than “all”.
  • Available on paid plans (Starter, Standard and Business); the free plan gets 403.
  • Paying per call with x402: one chain per request (a single connectionId or blockchain); several chains or “all” need an API key.

Authorizations

X-API-KEY
string
header
required

API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the X-API-KEY request header. Never expose your key in client-side code.

Query Parameters

address
string
required

The EVM wallet address (or ENS name) to query

Example:

"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"

connectionId
string

The identifier of connection from /wallet/blockchains call response. One value, a comma-separated list, or "all" for every EVM chain. If both connectionId and blockchain are provided, connectionId is used; if neither is, an EVM address is queried on every EVM chain (billed like "all"). Under "all", top-tier chains (ethereum, binacesmartchain, base-wallet, polygon-wallet, arbitrum-wallet, optimism-wallet, avalanche-wallet, hyperevm-wallet, monad-wallet, plasma-wallet) are always included; other chains that take longer than 12 seconds are left out, as is any chain without a result.

Example:

"ethereum"

blockchain
string

The blockchain network identifier from /wallet/blockchains call response. One value, a comma-separated list, or "all" for every EVM chain. If both connectionId and blockchain are provided, connectionId is used; if neither is, an EVM address is queried on every EVM chain (billed like "all"). Under "all", top-tier chains (ethereum, binacesmartchain, base-wallet, polygon-wallet, arbitrum-wallet, optimism-wallet, avalanche-wallet, hyperevm-wallet, monad-wallet, plasma-wallet) are always included; other chains that take longer than 12 seconds are left out, as is any chain without a result.

Example:

"ethereum"

timestamp
string
required

The moment to get balances for: a Unix timestamp in seconds (milliseconds are accepted too), or an ISO 8601 date such as 2025-01-01 (00:00 UTC that day) or date-time such as 2025-01-01T12:00:00Z (UTC when no offset is given). Balances are read at the last block at or before it.

Example:

"2025-01-01"

Response

Get wallet balance at a past moment

address
string
required

The wallet address that was queried (ENS names resolved)

Example:

"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"

timestamp
number
required

The requested moment, as a unix timestamp in seconds

Example:

1735689600

totalValue
number
required

Total USD value across all chains of the balances that have a price at that moment

Example:

125430.12

chains
object[]
required

One entry per chain with a balance read at that moment, highest value first. A single-chain request has one entry. With several chains, a chain without a result (it did not exist yet, its node keeps no history that old, or it did not answer in time) is left out, as on /wallet/balance.