cURL
curl --request POST \ --url https://yield.gluex.xyz/tvl \ --header 'Content-Type: application/json' \ --data '{ "pool_address": "0x1234567890123456789012345678901234567890", "lp_token_address": "0x1234567890123456789012345678901234567890", "chain": "ethereum" }'
{ "success": true, "tvl": { "tvl": 1234567.89, "network_id": "ethereum", "pool_address": "0x1234567890123456789012345678901234567890" } }
Calculate the Total Value Locked (TVL) in USD for a lending pool.
TVL calculation response
The response is of type object.
object