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)
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/bridge/getliquidity
- AuthAPI key in header X-API-Key
Query parameters
Address of the liquidity pool.
Public address of the sender.
The unique ID to specify the bridge protocol for routing cross-chain queries or transactions. Find more here.
Symbol of the source chain.
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.
Symbol of the source token.
Address of the source token.
Response
Successful response
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.