Protocols

Protocols

Endpoint: Protocols

💡
Please note: Our Protocols Endpoint is still under development, and currently supports the following protocols: AAVE (v2 & v3), Uniswap (v2), Lido, Compound (v2), Liquity, InstaDapp, Stargate, Uniswap (v3), Radiant (v2), MakerDao, Arrakis

/protocols/{address}

Returns a list of protocols for wallet address on all networks.

Example

GET-parameters:

  • api-key
  • networks (default networks=all). You can pass the names of the networks, for example, for optimism and arbitrum, the request will look like this:
    • https://datalayer.decommas.net/datalayer/api/v1/protocols/{address}?networks=optimism,arbitrum&api-key={YOUR-API-KEY}
  • limit - parameter for pagination (default 20, min 20, max 100)
  • offset - parameter for pagination (default 0)

Response example (ALL FIELDS ARE MANDATORY):

{
  "count": 2,
  "status": 200,
  "result": [
    {
      "chain_name": "mainnet",
      "chain_id": 1,
      "protocol_id": "aave_v2",
      "protocol_name": "Aave V2",
      "protocol_logo": null,
      "position": {
        "asset_usd_value": "2.04045871341",
        "debt_usd_value": "0",
        "net_usd_value": "2.04045871341"
      }
    },
    {
      "chain_name": "mainnet",
      "chain_id": 1,
      "protocol_id": "aave_v3",
      "protocol_name": "Aave V3",
      "protocol_logo": null,
      "position": {
        "asset_usd_value": "1.0090216719749998",
        "debt_usd_value": "0",
        "net_usd_value": "1.0090216719749998"
      }
    }
  ]
}