chain

Get Approval Data

Retrieves token approval allowances granted by a specified address, listing spender addresses, token symbols, and allowed amounts. It also provides risk factors and value-at-risk metrics, aiding in auditing permissions and managing DeFi exposures.

💡 Compute Unit Value: 75 (Fixed)

get/defi/v1/chain/getapprovaldata

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/chain/getapprovaldata
  • Auth
    API key in header X-API-Key

Query parameters

addressstring required

The public address of the user to retrieve approval data for.

Example:0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402
chainId'1' | '137' | '56' | '43114' | '25' | '42161' | '10' | '8453' | '250'

The unique ID to direct queries or transactions to the correct blockchain. Find more here.

Example:1
chainSymbolstring

The abbreviated chain name for queries or transactions.

Example:ETH
pageTokenstring

The cursor used to fetch the next page of results.

Example:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYWdlIjoxLCJjb250cmFjdEFkZHJlc3MiOiIweGZhZThlNjRjZGRlNzM1NTBlN2Q3ZjA0Njk1NTdhMzNhNDE3YjI4NjgiLCJjb250cmFjdFR5cGUiOiJlcmMyMCIsImFwcHJvdmVyQWRkcmVzcyI6IjB4NjVhOGYwN2JkOWE4NTk4ZTFiNWI2YzBhODhmNDc3OWRiYzA3NzY3NSIsInNwZW5kZXJBZGRyZXNzIjoiMHgxMTExMTExMjU0ZmI2YzQ0YmFjMGJlZDI4NTRlNzZmOTA2NDMwOTdkIiwiaWF0IjoxNzMzMzkzODE2fQ.y7FANxpXgtdgk83CIqPHHk2jutj1NZrueTu4XR39jnk
vsCurrenciesstring

A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.

Example:usd,eur,gbp

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "nextPageToken": "eyJhbGciOiJIUzI1NiJ9.eyJrZXkiOnsicGsiOiIweDY1YThmMDdiZDlhODU5OGUxYjViNmMwYTg4ZjQ3NzlkYmMwNzc2NzUiLCJzayI6ImFwcHJvdmVyOjB4ZmFmZDRjYjcwM2IyNWNiMjJmNDNkMDE3ZTdlMGQ3NWZlYmMyNjc0MzplcmMyMDoweDIxNmI0YjRiYTlmM2U3MTk3MjY4ODZkMzRhMTc3NDg0Mjc4YmZjYWUifSwicGFnZSI6MH0.zTKO0SeAR3RbSJI2uk9S0lUaozcCafGMT2OjS1kvj30",
    "approvals": [
      {
        "tokenAddress": "0xffeecbf8d7267757c2dc3d13d730e97e15bfdf7f",
        "tokenSymbol": "BORING",
        "spender": "0xe7b388d44fa9069385e174efe6f10616b149fe86",
        "allowance": "115792089237316195423570985008687907853269984665640564036939768402646829639935",
        "valueAtRisk": "0",
        "riskFactor": "LOW RISK",
        "lastUpdated": "1668720058",
        "prices": {
          "usd": [
            {
              "0xffeecbf8d7267757c2dc3d13d730e97e15bfdf7f": "0.000359667588245916"
            }
          ]
        }
      },
      {
        "tokenAddress": "0xffeecbf8d7267757c2dc3d13d730e97e15bfdf7f",
        "tokenSymbol": "BORING",
        "spender": "0xdef1c0ded9bec7f1a1670819833240f027b25eff",
        "allowance": "115792089237316195423570985008687907853269984665640563892563776604972513032835",
        "valueAtRisk": "0",
        "riskFactor": "LOW RISK",
        "lastUpdated": "1688315609",
        "prices": {
          "usd": [
            {
              "0xffeecbf8d7267757c2dc3d13d730e97e15bfdf7f": "0.000359667588245916"
            }
          ]
        }
      },
      {
        "tokenAddress": "0xffeecbf8d7267757c2dc3d13d730e97e15bfdf7f",
        "tokenSymbol": "BORING",
        "spender": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
        "allowance": "115792089237316195423570985008687907853269984665640563979724133720178046426639",
        "valueAtRisk": "0",
        "riskFactor": "LOW RISK",
        "lastUpdated": "1704261178",
        "prices": {
          "usd": [
            {
              "0xffeecbf8d7267757c2dc3d13d730e97e15bfdf7f": "0.000359667588245916"
            }
          ]
        }
      },
      {
        "tokenAddress": "0xfeea0bdd3d07eb6fe305938878c0cadbfa169042",
        "tokenSymbol": "8PAY",
        "spender": "0x1111111254fb6c44bac0bed2854e76f90643097d",
        "allowance": "115792089237316195423570985008687907853269984665640563818699602112242849105734",
        "valueAtRisk": "66114939279596",
        "riskFactor": "LOW RISK",
        "lastUpdated": "1643236661",
        "prices": {
          "usd": [
            {
              "0xfeea0bdd3d07eb6fe305938878c0cadbfa169042": "NA"
            }
          ]
        }
      },
      {
        "tokenAddress": "0xfeea0bdd3d07eb6fe305938878c0cadbfa169042",
        "tokenSymbol": "8PAY",
        "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
        "allowance": "115792089237316195423570985008687907853269984665640563950088107850441750668765",
        "valueAtRisk": "66114939279596",
        "riskFactor": "LOW RISK",
        "lastUpdated": "1668723837",
        "prices": {
          "usd": [
            {
              "0xfeea0bdd3d07eb6fe305938878c0cadbfa169042": "NA"
            }
          ]
        }
      },
      {
        "tokenAddress": "0xfeea0bdd3d07eb6fe305938878c0cadbfa169042",
        "tokenSymbol": "8PAY",
        "spender": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
        "allowance": "115792089237316195423570985008687907853269984665640563960590978914048759408961",
        "valueAtRisk": "66114939279596",
        "riskFactor": "LOW RISK",
        "lastUpdated": "1667593810",
        "prices": {
          "usd": [
            {
              "0xfeea0bdd3d07eb6fe305938878c0cadbfa169042": "NA"
            }
          ]
        }
      },
      {
        "tokenAddress": "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605",
        "tokenSymbol": "NPC",
        "spender": "0xb6f6d86a8f9879a9c87f643768d9efc38c1da6e7",
        "allowance": "115792089237316195423570985008687907853269984665640553442666315231023129639935",
        "valueAtRisk": "1437467700503740915888",
        "riskFactor": "LOW RISK",
        "lastUpdated": "1753256130",
        "prices": {
          "usd": [
            {
              "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605": "0.029658048697289215"
            }
          ]
        }
      },
      {
        "tokenAddress": "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605",
        "tokenSymbol": "NPC",
        "spender": "0x89b8aa89fdd0507a99d334cbe3c808fafc7d850e",
        "allowance": "115792089237316195423570985008687907853269984665640563989951705385352977865205",
        "valueAtRisk": "1437467700503740915888",
        "riskFactor": "LOW RISK",
        "lastUpdated": "1735277110",
        "prices": {
          "usd": [
            {
              "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605": "0.029658048697289215"
            }
          ]
        }
      },
      {
        "tokenAddress": "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605",
        "tokenSymbol": "NPC",
        "spender": "0x6352a56caadc4f1e25cd6c75970fa768a3304e64",
        "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
        "valueAtRisk": "1437467700503740915888",
        "riskFactor": "LOW RISK",
        "lastUpdated": "1749786724",
        "prices": {
          "usd": [
            {
              "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605": "0.029658048697289215"
            }
          ]
        }
      },
      {
        "tokenAddress": "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605",
        "tokenSymbol": "NPC",
        "spender": "0x6131b5fae19ea4f9d964eac0408e4408b66337b5",
        "allowance": "115792089237316195423570985008687907853269984665640563682735854489602465982015",
        "valueAtRisk": "1437467700503740915888",
        "riskFactor": "LOW RISK",
        "lastUpdated": "1749786732",
        "prices": {
          "usd": [
            {
              "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605": "0.029658048697289215"
            }
          ]
        }
      },
      {
        "tokenAddress": "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605",
        "tokenSymbol": "NPC",
        "spender": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
        "allowance": "115792089237316195423570985008687907853269984665640563431259875920565631041708",
        "valueAtRisk": "1437467700503740915888",
        "riskFactor": "LOW RISK",
        "lastUpdated": "1750018812",
        "prices": {
          "usd": [
            {
              "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605": "0.029658048697289215"
            }
          ]
        }
      },
      {
        "tokenAddress": "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605",
        "tokenSymbol": "NPC",
        "spender": "0x1111111254eeb25477b68fb85ed929f73a960582",
        "allowance": "115792089237316195423570985008687907853269984665640552312512800740634351831505",
        "valueAtRisk": "1437467700503740915888",
        "riskFactor": "LOW RISK",
        "lastUpdated": "1749155156",
        "prices": {
          "usd": [
            {
              "0xfebfa339e44c28e2aa9e62ea1027c9cb4e378605": "0.029658048697289215"
            }
          ]
        }
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.