# x402-bsc-tools — PreFlight: checks before money moves (BSC, Base, Hyperliquid) > Pay-per-call checks for AI agents to run BEFORE money moves: before sending funds to an address, before paying an x402 endpoint, before opening a Hyperliquid perp (including HIP-3 US stock perps). Paid with x402 v2 (exact scheme): USDT on BNB Smart Chain (eip155:56, Permit2) or USDC on Base (eip155:8453, EIP-3009). No account or API key. Read-only: never places orders, never holds keys. ## Paid endpoints (GET) - /v1/address-check ($0.02 per call): Call BEFORE paying or sending funds to a BNB Smart Chain (BSC) address. Returns whether it is a plain wallet or a contract, Safe multisig owners and threshold, EIP-1167 clone target, BNB/USDT/USDC balances and nonce, read live from the chain. Pass ?address=0x... This is not a scam or sanctions screen. Unaudited, not financial advice; you are not charged if the lookup fails. - /v1/cross-chain-address-check ($0.03 per call): Call BEFORE sending funds to the same 0x address on BNB Smart Chain AND Base. One call returns, for each chain, whether the address is a plain wallet or a contract, Safe owners and threshold, native and stable balances and nonce, plus warnings when the two chains disagree (e.g. a contract on one chain but empty on the other, so funds sent there may be unrecoverable). Pass ?address=0x... Not a scam screen, not financial advice; you are not charged if a lookup fails. - /v1/endpoint-probe ($0.02 per call): Validate an x402 endpoint BEFORE you pay it. Pass ?url=https://... We GET the URL (we never pay it) and check that it returns a valid x402 v2 402 challenge, which networks, assets and amounts it accepts, whether payTo and amounts are well formed, and whether a path advertised as paid actually answers 200 for free. Returns pass/fail per check. You are not charged if the probe cannot run. - /v1/bsc-x402-snapshot ($0.05 per call): Snapshot of x402 payments settled on BNB Smart Chain through the standard Permit2 proxy over a stated window: settlement count, volume, per-recipient totals, concentration, amount distribution. Public on-chain data over a short window (about 43 hours), so do not extrapolate. Not financial advice. - /v1/hl/pretrade-check ($0.02 per call): Pre-trade risk check for a Hyperliquid perp position, incl. HIP-3 US stock perps (xyz:NVDA). Pass ?coin=xyz:NVDA&side=long&size_usd=1000&leverage=5&hold_hours=24. Returns risk_level low/medium/high with reasons in English and Chinese: leverage tier, delisting and OI cap, stock-market session and closures in your hold window, discovery-bound risk, mark/oracle gap, funding cost, book slippage, approx. liquidation distance, fees. Read-only, places no orders; not charged if data is unavailable. - /v1/hl/account-audit ($0.01 per call): Permission and risk review of a Hyperliquid account. Pass ?user=0x... (master or sub-account address, not an agent wallet). Returns approved builders and the max fee each may charge, active agent (API) wallets and their expiry, open positions near liquidation across native and HIP-3 dexes, open order counts, account mode. Read-only, not financial advice; you are not charged if Hyperliquid data cannot be fetched. ## Free endpoints (GET) - /v1/hl/market-verify: Free. Pass ?symbol=NVDA. Lists every Hyperliquid perp market (native and each HIP-3 deployer) with this symbol: deployer, oracle updater, max leverage, growth mode, funding multiplier, open interest, 24h volume, flags (multiple_listings, delisted, oi_cap, low_liquidity, isolated_only) and which listing is most liquid. Use it to make sure you trade the market you mean. - /v1/hl/health: Free. Upstream connectivity to Hyperliquid's info API. ## Agent Skill and examples - /skill/SKILL.md: drop-in Agent Skill (hyperliquid-preflight) that runs the check before any Hyperliquid order and acts on risk_level. - /examples/check_then_trade.py: standard-library Python gate around your own order function. - /examples/mcp-config.md: how to connect the MCP server. - Source, Skill and weekend backtest data: https://github.com/PTone111/hyperliquid-preflight ## Client note Send your own User-Agent header (any name). The default Python urllib one ("Python-urllib/3.x") is rejected by Cloudflare with error 1010 before it reaches this service. ## MCP POST /mcp speaks MCP (streamable HTTP, JSON responses). tools/list shows every endpoint as a tool. Paid tools return an x402 PaymentRequired object in structuredContent with isError=true; retry with params._meta['x402/payment'] set to the signed PaymentPayload. ## How to pay Request the endpoint without a payment header to receive HTTP 402 with a PAYMENT-REQUIRED header (base64 JSON) listing the accepted options. Sign one option and retry with a PAYMENT-SIGNATURE header. Bad input returns HTTP 400 before any payment is requested. If we fail to compute a result you are not charged. OpenAPI: /openapi.json payTo: 0x0ea4458f7e94fe20a4908c8dbb2ede10107ca593 ## Terms Experimental and unaudited. Data are observations at the stated time, not financial advice.