Exit Depth
by OnchainPulse in Onchain & crypto
Exit-depth / sell-impact estimator for Uniswap-v3-compatible AND v2-style (x·y=k) pools on 11 chains (Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Avalanche, Monad, World Chain, HyperEVM, Robinhood Chain): live pool state read from the contract (v3 sqrtPrice + in-range liquidity, or v2 reserves); tokens sellable at 1/2/5/10/25% price impact in tokens, quote and USD, %-of-supply framing, manipulated-liquidity cross-check vs DexScreener. Deterministic pool math, no LLM — the "can I actually g
https://onchainpulse.theaslangroupllc.com/api/exit-depth- Price
- $0.02
- per call in USDC
- Uptime
- 0.0%
- last 30 days
- Response time
- -
- no timed checks yet
- Last check
- Failed
- 5 h ago, next any minute now
Reliability
Latest check failed 5 h ago: Amount "0.02" is not in atomic token units
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://onchainpulse.theaslangroupllc.com/api/exit-depth
Each call costs $0.02 in USDC on Polygon, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://onchainpulse.theaslangroupllc.com/api/exit-depth?chain=base&pool=0x76Bf0abD20f1e0155Ce40A62615a90A709a6C3D8&token=0x532f27101965dd16442E59d40670FaF5eBB142E4Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | string | No | Chain slug, default base — ethereum, optimism, bsc, polygon, monad, world, hyperevm, robinhood, base, arbitrum, avalanche |
pool | string | No | v3- or v2-compatible pool address (0x…) to read directly (overrides token resolution) |
token | string | No | ERC-20 token address (0x…) — primary pool auto-resolved via DexScreener |
Example response
The provider's example. We can't check it without paying.
Example response, 48 lines
{
"chain": "base",
"cross_check": {
"consistent": true,
"dexscreener_liquidity_usd": 4200000
},
"depth": [
{
"impact_pct": 1,
"pct_of_supply": 0.0126,
"proceeds_in_quote": 28.1,
"proceeds_usd": 104300,
"tokens_to_sell": 1250000
},
{
"impact_pct": 5,
"pct_of_supply": 0.064,
"proceeds_in_quote": 141.9,
"proceeds_usd": 527000,
"tokens_to_sell": 6360000
},
{
"impact_pct": 25,
"pct_of_supply": 0.344,
"proceeds_in_quote": 703.2,
"proceeds_usd": 2610000,
"tokens_to_sell": 34100000
}
],
"dex": "uniswap",
"disclaimer": "Deterministic AMM pool math (v3 concentrated-liquidity or v2 constant-product) from live on-chain state at a point in time. v3 depth estimates assume current in-range liquidity persists through the move (real depth at larger impacts is usually lower); v2 tiers exclude the swap fee. Analytics, not financial advice, not an execution quote.",
"fee_tier_pct": 0.3,
"flags": [],
"method": "Live eth_call reads of slot0 + liquidity() on the pool; constant-L approximation.",
"pool": "0x76Bf…C3D8",
"pool_type": "v3",
"quote_token": {
"price_usd": 3712.4,
"symbol": "WETH"
},
"target_token": {
"address": "0x532f…42E4",
"price_usd": 0.0842,
"side": "token0",
"symbol": "BRETT",
"total_supply": 9910236538
}
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.02.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://onchainpulse.theaslangroupllc.com/api/exit-depth?chain=base&pool=0x76Bf0abD20f1e0155Ce40A62615a90A709a6C3D8&token=0x532f27101965dd16442E59d40670FaF5eBB142E4'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://onchainpulse.theaslangroupllc.com/api/exit-depth?chain=base&pool=0x76Bf0abD20f1e0155Ce40A62615a90A709a6C3D8&token=0x532f27101965dd16442E59d40670FaF5eBB142E4' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.02 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.02" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.02 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fonchainpulse.theaslangroupllc.com%2Fapi%2Fexit-depth
const res = await pay("https://onchainpulse.theaslangroupllc.com/api/exit-depth?chain=base&pool=0x76Bf0abD20f1e0155Ce40A62615a90A709a6C3D8&token=0x532f27101965dd16442E59d40670FaF5eBB142E4");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.02 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.02"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://onchainpulse.theaslangroupllc.com/api/exit-depth?chain=base&pool=0x76Bf0abD20f1e0155Ce40A62615a90A709a6C3D8&token=0x532f27101965dd16442E59d40670FaF5eBB142E4")
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 5 h ago | Amount "0.02" is not in atomic token units | 402 | 227 ms | $0.02 |
| 11 h ago | Amount "0.02" is not in atomic token units | 402 | 231 ms | $0.02 |
| 17 h ago | Amount "0.02" is not in atomic token units | 402 | 322 ms | $0.02 |
| 22 h ago | Amount "0.02" is not in atomic token units | 402 | 366 ms | $0.02 |
| 28 h ago | Amount "0.02" is not in atomic token units | 402 | 300 ms | $0.02 |
Show 5 older checks
| 33 h ago | Amount "0.02" is not in atomic token units | 402 | 334 ms | $0.02 |
| 39 h ago | Amount "0.02" is not in atomic token units | 402 | 245 ms | $0.02 |
| 44 h ago | Amount "0.02" is not in atomic token units | 402 | 187 ms | $0.02 |
| 2 days ago | Amount "0.02" is not in atomic token units | 402 | 156 ms | $0.02 |
| 2 days ago | Amount "0.02" is not in atomic token units | 402 | 160 ms | $0.02 |