Skip to main content
GET
cURL
This endpoint is only available for OpenApi users with paid subscription.
400 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 4000 credits.
In Query field “blockchain”: credits are multiplied by the number of values.
If the value of “blockchain” in Query is “all”, multiplier is 4000 credits.
Multipliers can be applied multiple times.

  • Detailed breakdown of DeFi assets and protocols
  • Track staked tokens, LP positions, and earned rewards
  • address: Wallet address to query
  • One of connectionId or blockchain (if both provided, connectionId is used). Single value, comma-separated list, or “all”.

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 wallet address for which the DeFi data is being queried. Must be a valid string representing an EVM-compatible wallet address.

Example:

"0x1234567890abcdef1234567890abcdef12345678"

connectionId
string

Specifies the blockchain network connection ID to query for DeFi data. Can be a single network (e.g., "ethereum") or comma-separated list of networks (e.g., "ethereum,polygon-wallet") or "all" for all networks. Either connectionId or blockchain must be provided. If both are provided, connectionId will be used.

Example:

"base-wallet"

blockchain
string

The blockchain network identifier from /wallet/blockchains call response. Can be a single network (e.g., "ethereum") or a comma-separated list of networks (e.g., "ethereum,polygon,binance_smart"). Either connectionId or blockchain must be provided. If both are provided, connectionId will be used.

Example:

"base"

Response

Defi Response

totalAssets
object
required

Total value of all DeFi positions across all protocols

protocols
object[]
required

List of DeFi protocols with user positions