{"slug":"defi-halowerk-com-pool-liquidity-c22270","title":"Resolves a pool either by address or by chain, token pair and DEX, then reads to","host":"defi.halowerk.com","method":"POST","resource":"https://defi.halowerk.com/pool/liquidity","category":"code","description":"Resolves a pool either by address or by chain, token pair and DEX, then reads token0, token1, fee tier, reserves, in-range liquidity and the current tick straight from the contract. Exit impact is not estimated from a formula but simulated: for Uniswap V3 through the official Quoter contract via eth","price_listed":0.005,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"chain":"base","dex":"uniswap-v3","fee_tier_ppm":500,"token_a":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","token_b":"0x4200000000000000000000000000000000000006"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string"},"dex":{"description":"DEX id, required together with token_a and token_b.","type":"string"},"fee_tier_ppm":{"description":"Optional fee tier in parts per million for Uniswap V3. Omitted means the deepest tier.","enum":[100,500,3000,10000],"type":"integer"},"pool":{"description":"Pool address. Either this or token_a plus token_b plus dex.","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"token_a":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"token_b":{"pattern":"^0x[a-fA-F0-9]{40}$","type":"string"}},"required":["chain"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Resolves a pool either by address or by chain, token pair and DEX, then reads token0, token1, fee tier, reserves, in-range liquidity and the current tick straight from the contract. Exit impact is not estimated from a formula but simulated: for Uniswap V3 through the official Quoter contract via eth_call, which walks the same ticks a real swap would and reports how many it crossed; for constant-product and Solidly pools through the pool maths or the pool own getAmountOut. Nothing is ever execute","last_updated":"2026-11-24T10:15:50.293Z","schemes":["exact"]}