liquidstaking

Get Allowance

Retrieve the current token allowance that a designated spender is authorized to use on behalf of the token owner. Use this endpoint to verify approved limits before executing any subsequent spending or transfer operations.

💡 Compute Unit Value: 35 (Fixed)

get/defi/v1/liquidstaking/getallowance

Request

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

Query parameters

liquidStakingId'1' | '11155111' | '2' | '56' | '97' | '137' | '43114'

The unique ID to specify the liquid staking protocol for routing staking-related queries or transactions.

Example:1
ownerstring required

Public address of the owner of the token.

Example:0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402
tokenAddressstring required

Contract address of the token.

Example:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
spenderstring required

Public address of the spender of the token.

Example:0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
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": {
    "allowance": "20000000000",
    "prices": {
      "usd": [
        {
          "0x2b2c81e08f1af8835a78bb2a90ae924ace0ea4be": "28.35410204725495"
        }
      ],
      "inr": [
        {
          "0x2b2c81e08f1af8835a78bb2a90ae924ace0ea4be": "2450.942361058311"
        }
      ],
      "cny": [
        {
          "0x2b2c81e08f1af8835a78bb2a90ae924ace0ea4be": "202.9416499930226"
        }
      ]
    }
  }
}

Changes

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