Skip to content
Fourohtwo

defi.halowerk.com/pool/liquidity

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-pr

BaseUnchecked
POSThttps://defi.halowerk.com/pool/liquidity

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://defi.halowerk.com/pool/liquidity", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"chain":"base","dex":"uniswap-v3","fee_tier_ppm":500,"token_a":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","token_b":"0x4200000000000000000000000000000000000006"}),
});
console.log(await res.json());

Example input

{
  "chain": "base",
  "dex": "uniswap-v3",
  "fee_tier_ppm": 500,
  "token_a": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "token_b": "0x4200000000000000000000000000000000000006"
}

More from HALOWERK defiwerk