bridge

Get Liquidity

Retrieves the balance of a specific token pair within a liquidity pool for a given account. This endpoint allows users to query the current liquidity provided to a bridge by an account, facilitating monitoring and management of assets across different blockchain networks.

💡 Compute Unit Value: 65 (Fixed)

get/defi/v1/bridge/getliquidity

Request

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

Query parameters

poolAddressstring

Address of the liquidity pool.

Example:0xfad57d2039c21811c8f2b5d5b65308aa99d31559
addressstring required

Public address of the sender.

Example:0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402
srcChainIdstring

Chain ID of the source chain. Find more here.

Example:1
bridgeId'100' | '500'

The unique ID to specify the bridge protocol for routing cross-chain queries or transactions. Find more here.

Example:100
srcChainSymbolstring

Symbol of the source chain.

Example:ETH
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
srcTokenSymbolstring

Symbol of the source token.

Example:usdt
srcTokenAddressstring

Address of the source token.

Example:0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "poolId": "1",
    "poolName": "USD Coin-LP",
    "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "totalLiquidity": "5396689639164",
    "decimals": "6",
    "prices": {
      "usd": [
        {
          "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": "0.9999088673760814"
        }
      ]
    }
  }
}

Changes

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