trade_rail_quote
Simulate a token buy and sell-back before trading on Arc, X1, or BNB Chain. It refuses tokens you cannot sell or whose round trip exceeds maxLossPct, then returns pool data and unsigned transactions.
Instructions
APEX Trade Rail: before a bot buys a token on Arc, X1 or BNB Chain, simulate the buy AND the sell back at its size; a token you could not sell, or whose round trip costs more than maxLossPct (15 at most), is refused with the reason; otherwise the real pool, expected and minimum out, and UNSIGNED transactions for your own wallet (nothing is signed, held or sent by us). $0.003 per call over x402 (USDC on Arc, Base or Solana, or XNT on X1). Call once without payment for the terms, sign them with your own wallet, call again with payment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | your wallet (needed for the transaction and for sells) | |
| side | Yes | buy or sell | |
| chain | Yes | arc, x1 or bnb | |
| token | Yes | token address | |
| amount | Yes | buy: what you spend (USDC on Arc, XNT on X1, BNB on BNB); sell: tokens | |
| payment | No | a signed x402 payment (the base64 payload you would put in PAYMENT-SIGNATURE). Pass it and the purchase completes inside this tool call. | |
| maxLossPct | No | 0.5 to 15, default 15 |