Defi Unsigned Swap Calldata Linter
by Bot Bazaar in Onchain & crypto
Pre-Flight Base Swap Heuristic & Unsigned Calldata Linter: screens token/router/hook addresses against OFAC SDN, checks Uniswap v4 hook-delta flags and slippage bounds, and formats an unsigned ERC-20 approve + swap transaction template (integrator_fee_bps: 0, never signs or broadcasts). Also available at aliases /v1/x402/defi/pre-flight-swap-audit and /v1/swap/build-quote.
https://bot-bazaar.fly.dev/v1/x402/defi/unsigned-swap-calldata-linter- Price
- $0.02
- per call in USDC
- Uptime
- 98.0%
- last 30 days
- Response time
- 376 ms
- 610 ms slowest 5%
- Last check
- Passed
- 4 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://bot-bazaar.fly.dev/v1/x402/defi/unsigned-swap-calldata-linter
Each call costs $0.02 in USDC on Base, 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://bot-bazaar.fly.dev/v1/x402/defi/unsigned-swap-calldata-linter?amount_in_atomic=100000000&token_in=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
amount_in_atomic | string | No | Input amount in atomic token units |
dex_router | string | No | Target Base router (uniswap_universal_router, aerodrome_v2, odos_v2, zerox_settler) |
from_address | string | No | Caller unhosted wallet 0x address |
slippage_bps | string | No | Max slippage tolerance in bps (e.g. 50) |
token_in | string | No | Input ERC-20 token address on Base |
token_out | string | No | Output ERC-20 token address on Base |
Example response
The provider's example. We can't check it without paying.
Example response, 75 lines
{
"all_preflight_checks_passed": true,
"checks": {
"bounded_deadline_lte_1800s": true,
"hook_delta_clean": true,
"pool_liquidity_adequate": true,
"slippage_within_150_bps": true,
"zero_integrator_fee_enforced": true,
"zero_transfer_tax": true
},
"custody": "non-custodial-unsigned-diagnostic-only",
"fee_disclosure": {
"fee_mechanism": "flat_x402_per_call_only",
"integrator_fee_bps": 0,
"integrator_fee_recipient": null,
"ongoing_lp_or_token_fee_bps": 0,
"x402_request_fee_usdc": "0.02"
},
"generated_at": 1793130000,
"hook_inspection": {
"active_flags": [],
"custom_return_delta_enabled": false,
"hook_address": "0x0000000000000000000000000000000000000000",
"hook_risk_score": 0
},
"integrator_fee_bps": 0,
"legal_disclaimer": "Automated point-in-time technical simulation and unsigned calldata generator provided 'as-is' without warranty. Non-custodial software only; does not execute trades, custody assets, guarantee token safety, or provide financial, investment, or legal advice. Bot Bazaar is not a licensed broker-dealer, exchange, or money transmitter (Cal. Fin. Code § 3103(b) software/merchant only), takes 0 bps swap or LP fees, and makes no guarantee against smart-contract exploits, market losses, or malicious hooks.",
"non_custodial_attestation": {
"accepts_private_keys": false,
"custodies_funds": false,
"relays_or_broadcasts_tx": false,
"unsigned_output_only": true
},
"ofac_screened": true,
"platform_lp_share_bps": 0,
"swap_parameters": {
"amount_in_atomic": "100000000",
"amount_out_min_atomic": "99500000",
"chain": "base",
"chain_id": 8453,
"deadline_seconds": 300,
"dex_router": "uniswap_universal_router",
"from_address": "0x6E007731870EDe419CfB31889Cd5C4493CEcb04c",
"integrator_fee_bps": 0,
"network": "eip155:8453",
"recipient": "0x6E007731870EDe419CfB31889Cd5C4493CEcb04c",
"router_address": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"router_name": "Uniswap Universal Router (Base)",
"slippage_bps": 50,
"swap_fee_recipient": null,
"token_in": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"token_out": "0x4200000000000000000000000000000000000006",
"trade_pct_of_pool_liquidity": 0.02,
"transfer_tax_bps": 0
},
"technical_warnings": [],
"tool": "defi/unsigned-swap-calldata-linter",
"unsigned_transaction_templates": {
"broadcast_by_caller_only": true,
"step_1_erc20_approve": {
"chainId": 8453,
"data": "0x095ea7b30000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad0000000000000000000000000000000000000000000000000000000005f5e100",
"to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"value": "0x0"
},
"step_2_router_swap": {
"chainId": 8453,
"data": "0x04e45aaf000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda0291300000000000000000000000042000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000bb80000000000000000000000006e007731870ede419cfb31889cd5c4493cecb04c0000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000005ee3fe00000000000000000000000000000000000000000000000000000000000000000",
"to": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
"value": "0x0"
},
"unsigned_only": true
},
"valid": true
}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://bot-bazaar.fly.dev/v1/x402/defi/unsigned-swap-calldata-linter?amount_in_atomic=100000000&token_in=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
# 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://bot-bazaar.fly.dev/v1/x402/defi/unsigned-swap-calldata-linter?amount_in_atomic=100000000&token_in=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913' \
| 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%2Fbot-bazaar.fly.dev%2Fv1%2Fx402%2Fdefi%2Funsigned-swap-calldata-linter
const res = await pay("https://bot-bazaar.fly.dev/v1/x402/defi/unsigned-swap-calldata-linter?amount_in_atomic=100000000&token_in=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913");
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://bot-bazaar.fly.dev/v1/x402/defi/unsigned-swap-calldata-linter?amount_in_atomic=100000000&token_in=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913")
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 |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 304 ms | $0.02 |
| 27 h ago | Timed out | - | - | - |
| 3 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 295 ms | $0.02 |
| 4 days ago | Passed | 402 | 280 ms | $0.02 |
Show 10 older checks
| 5 days ago | Passed | 402 | 488 ms | $0.02 |
| 5 days ago | Passed | 402 | 659 ms | $0.02 |
| 6 days ago | Passed | 402 | 552 ms | $0.02 |
| 6 days ago | Passed | 402 | 296 ms | $0.02 |
| 6 days ago | Passed | 402 | 367 ms | $0.02 |
| 7 days ago | Passed | 402 | 365 ms | $0.02 |
| 7 days ago | Passed | 402 | 208 ms | $0.02 |
| 7 days ago | Passed | 402 | 426 ms | $0.02 |
| 7 days ago | Passed | 402 | 411 ms | $0.02 |
| 8 days ago | Passed | 402 | 242 ms | $0.02 |