Either way, Rach pays the gas and the customer needs no native token.
Same-chain swaps
swap.settled or swap.failed (Webhooks), or poll
GET /v1/swaps/{id}.
Cross-chain swaps
1. Quote (optional, reserves nothing)
POST /v1/swaps/cross-chain/quote with your API key:
amountis what goes into the swap. Rach’s flat fee for the origin chain comes on top, as for a payout.expected_outis the likely output.min_outis the least the customer will receive: if the swap cannot deliver at least that much, it is refunded instead.- The output goes to the customer’s own address on
to_chainunless you passto_address(any valid address on that chain). slippage_bpsis optional: default100(1%), maximum500.
2. Swap (signed)
Send the same body toPOST /v1/swaps/cross-chain, signed with your
payout key and carrying an Idempotency-Key. Add a reference if
you want one echoed back.
- Rach requests a quote from NEAR Intents. The refund address is always the customer’s own address on the origin chain. Rach checks NEAR’s signature and that every term matches what you asked for.
- Rach sends
amountfrom the customer’s address to the quote’sdeposit_address, exactly like a payout (status: DEPOSITING). - NEAR Intents swaps and delivers to
recipient(PROCESSING), then the swap ends:
GET /v1/swaps/cross-chain/{id}, or list with GET /v1/swaps/cross-chain
(?customer_ref=, limit, offset).
Limits
- Minimum: NEAR Intents currently requires about $100 per swap. Below that, the quote is
refused with
422and the provider’s reason. - Only the canonical USDT and USDC contracts on each chain are swapped (for example, native USDC on Polygon, not bridged USDC.e). Base has no canonical USDT, and TRON has no USDC.
- A deposit that reaches NEAR Intents after
quote_deadlineis refunded to the customer.
Sandbox
Test-mode keys get a real dry quote from NEAR Intents, with placeholder addresses, in the live response shape andstatus: "SANDBOX_SIMULATED". Nothing is reserved or moved.
