Defiwerk
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-product and Solidly pools through the pool maths or the pool own getAmountOut. Nothing is ever.
POST https://defi.halowerk.com/pool/liquidityEingaben
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| chain | string | Ja | |
| pool | string | Nein | Pool address. Either this or token_a plus token_b plus dex. |
| token_a | string | Nein | |
| token_b | string | Nein | |
| dex | string | Nein | DEX id, required together with token_a and token_b. |
| fee_tier_ppm | integer | Nein | Optional fee tier in parts per million for Uniswap V3. Omitted means the deepest tier. |
Vollständiges Eingabeschema anzeigen
{
"type": "object",
"required": [
"chain"
],
"additionalProperties": false,
"properties": {
"chain": {
"type": "string",
"enum": [
"base",
"ethereum",
"arbitrum",
"optimism",
"polygon"
]
},
"pool": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$",
"description": "Pool address. Either this or token_a plus token_b plus dex."
},
"token_a": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"token_b": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"dex": {
"type": "string",
"description": "DEX id, required together with token_a and token_b."
},
"fee_tier_ppm": {
"type": "integer",
"enum": [
100,
500,
3000,
10000
],
"description": "Optional fee tier in parts per million for Uniswap V3. Omitted means the deepest tier."
}
}
}Veröffentlichtes Eingabebeispiel
{
"chain": "base"
}Ergebnis & Dokumentation
Maschinenlesbare Dokumentation dieses Hubs
Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.
Weitere Endpunkte dieses Hubs
- Defiwerk0,008 USDC
bridge / quote
POSThttps://defi.halowerk.com/bridge/quoteFetches live offers from a public bridge aggregator and reports for every option what arrives, what it costs in fees and gas, and how long it usually takes. The security model is given equal weight to the price: bridges are the most expensi
- Defiwerk0,005 USDC
dex / quote
POSThttps://defi.halowerk.com/dex/quoteFor a given chain, token pair and input amount, every connected DEX is queried through its own contracts: Uniswap V3 through the Quoter via eth_call across all fee tiers, constant-product pools through the pool maths on live reserves, Solid
- Defiwerk0,006 USDC
lending / health
POSThttps://defi.halowerk.com/lending/healthResolves pool, price oracle and data provider through the protocol address provider rather than hard-coded addresses, then reads every reserve the wallet touches: collateral amounts, variable and stable debt, LTV, liquidation threshold, liq