# Trade BORING (agents)

Token: `0xBb7220CA75B4624772d1a84bD42687c9bC9C5a0D` on Robinhood Chain (eip155:4663), Pons v2 launch. These endpoints **never sign**: they quote, and they
return unsigned transactions your wallet signs and sends in order. Machine-readable: https://boringporsche.com/.well-known/trade.json

## Quote

    GET https://boringporsche.com/api/trade/quote?side=buy&from=base-usdc&amount=25
    GET https://boringporsche.com/api/trade/quote?side=sell&from=robinhood-eth&amount=100000

`youGet.min` is the floor written into the call (expected − slippage); `fees`, `timeSec`, `route` and `notes` describe the path.

## Build

    POST https://boringporsche.com/api/trade/build
    { "side": "buy", "from": "arbitrum-eth", "amount": "0.01", "sender": "0xYou" }

Before launch this answers `not_launched` unless you pass `"allowRehearsal": true` (stand-in token, integration tests only).
Returns the same quote plus `steps[]` = `{ kind: "transaction", chain, to, data, value, gas? }`. Send each with your wallet on
`chain`, waiting for the receipt before the next. A buy paid from another chain is one Relay deposit on the origin chain (plus an ERC-20 approve when
paying with USDC); Relay's solver performs the curve buy on Robinhood Chain for `recipient`. A sell is an exact approve (only
if the allowance is short) and the curve sell; selling out to another chain appends a Relay bridge step (re-quote if you wait).

## Pay from Solana

    GET https://boringporsche.com/api/trade/quote?side=buy&from=solana-sol&amount=0.05            (no wallet needed for a price)
    POST https://boringporsche.com/api/trade/build
    { "side": "buy", "from": "solana-sol", "amount": "0.05", "sender": "<your Solana address, base58>", "recipient": "0xYou on Robinhood Chain" }

`steps` is one `{ kind: "solana", chain: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", tx, instructions, addressLookupTableAddresses, requestId }`.
`tx` is base64 of an UNSIGNED v0 transaction (fee payer = `sender`, blockhash fetched at build time: sign and send within about a
minute or build again): `VersionedTransaction.deserialize(base64)`, sign, send. `instructions` are Relay's, as received, if you
compile your own. Relay's solver then performs the curve buy on Robinhood Chain for `recipient`. Follow it:
`GET https://api.relay.link/intents/status/v3?requestId=<requestId>` until `success`, `refund` or `failure`
(or https://relay.link/transaction/<requestId>).

## Sell out to Solana

    POST https://boringporsche.com/api/trade/build
    { "side": "sell", "from": "solana-sol", "amount": "100000", "sender": "0xYou", "recipient": "<your Solana address, base58>" }

All steps are on Robinhood Chain, signed by your 0x wallet: an exact approve (only if the allowance is short), the curve sell (ETH
to you), then a Relay deposit of the sell's floor ETH; Relay pays the SOL out to `recipient`. Re-quote if you wait more than a minute.

## MCP

    POST https://boringporsche.com/mcp     (Streamable HTTP, JSON-RPC 2.0: initialize, tools/list, tools/call)

Tools: `trade_quote`, `trade_build` (unsigned steps), `launch_status`, `pay_with_options`. Same handlers and limits as the endpoints
above; nothing is signed.

## Pay with

- `robinhood-eth` (eip155:4663, ETH): buy wired, minimum 0.0005 ETH; sell payout wired
- `base-eth` (eip155:8453, ETH): buy wired, minimum 0.0005 ETH; sell payout wired
- `base-usdc` (eip155:8453, USDC): buy wired, minimum 1 USDC; sell payout wired
- `arbitrum-eth` (eip155:42161, ETH): buy wired, minimum 0.0005 ETH; sell payout wired
- `arc-usdc` (eip155:5042, USDC): buy wired, minimum 1 USDC; sell payout wired
- `solana-sol` (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp, SOL): buy wired (one Solana transaction: sender base58, recipient 0x on Robinhood Chain), minimum 0.01 SOL; sell payout wired (steps on Robinhood Chain signed by your 0x wallet; recipient = your Solana address, base58)

## Errors

JSON `{ ok: false, error, message }`: `message` is plain words for a person, branch on the stable `error` code: `not_launched`, `bad_side`, `bad_amount`, `bad_address`, `bad_slippage`, `missing_sender`, `unknown_chain`, `not_pons_v2`, `pool_phase`, `pair_token`, `quote_failed`, `insufficient_balance`, `below_minimum`, `too_small`, `solana_needs_wallets`, `bad_solana_address`, `solana_rpc_unavailable`, `not_wired`, `relay_NO_SWAP_ROUTES_FOUND`, `relay_AMOUNT_TOO_LOW`, `relay_INSUFFICIENT_LIQUIDITY`, `relay_rate_limited`, `relay_*`, `rpc_unavailable`, `rate_limited`.
After graduation the curve is closed: `pool_phase` (the Uniswap v4 route is not wired yet). Rate limit: 30 requests / minute / IP per endpoint.
