D

Dexl · Build TX Sell

by Dexl

POSTBaseArbitrumFraxtal

$0.005

per call · USD Coin on Base

Builds unsigned transaction(s) to sell any token - DexL bonding curve, graduated DEX pair, or any other token with WETH liquidity on the chain's DEX router (including an approve step if needed)

Endpoint

POST https://api.dexl.io/api/build-tx/sell

6

Calls / 30d

1

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.dexl.io/api/build-tx/sell", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({}),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.dexl.io/api/build-tx/sell" \
  -H "Content-Type: application/json" \
  -d '{}' \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0x820d61a720963fab63ab6e0aef4d1779eb42f6bb
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Fraxtal
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from Dexl & similar services