Pay Solana fees for your users, bridge between any two chains
A Solana wallet holding no SOL can now trade: send sol_fee_payer, a Solana wallet you fund, on buy and sell quotes and it pays the fees (a first buy of an ondo token is the exception). Bridging takes any two supported chains, with an optional mode where Treasures submits the deposit, and every quote leg carries its own expires_at. The reference also documents BNB Smart Chain, which is not open yet.
The new fields are additive. Two things change for every caller: each quote leg now carries its own expires_at, enforced at submit, and a buy alternative that had already expired is left out, so quote_index values can skip.
What changed
Paying Solana fees for your users. A wallet holding almost no SOL (under about 0.003) is refused on Solana with 422 no_routes, because the quote itself needs the SOL. POST /quote/buy and POST /quote/sell now take sol_fee_payer: one fixed Solana address you fund.
Each Solana leg then comes back either carrying sol_fee_payer (your wallet pays the network fees and the rent of any token account the trade opens; the leg reads gasless: false with estimated_gas_usd) or as a market-maker fill without it, which pays its own fee. Every ondo leg is a market-maker fill, so the field never pays for one, and a first buy of an ondo token still opens the user's token account at the wallet's own cost (about 0.01 SOL).
Sign a leg that carries it as issued, with both your sol_fee_payer and the user's sol_wallet. The field needs sol_wallet, must differ from it, is refused beside quote_only: true and on /quote/preview, and is screened like your other wallets. Details: Paying Solana fees for your users.
Bridging between any two chains. POST /bridge/quote takes any two distinct chains among sol, eth, robinhood, base, arbitrum and bnb, each side in its own base currency (USDG on Robinhood Chain). sol_wallet and sol_signature are optional when neither side is Solana.
An optional delivery: "submit" returns a payload you sign and send to the new POST /bridge/{bridge_quote_id}/submit, and Treasures sends the deposit: from Ethereum, Base or Arbitrum that is one or two typed-data signatures with no approval, no native gas and no nonce, and from Solana a transaction Treasures broadcasts. Other origins answer 400 unsupported_route for now. Resubmitting the same body is safe for an hour.
A deadline on every leg. Each executable leg in quotes[] now carries its own expires_at. The top-level expires_at keeps its meaning (the earliest leg's), and POST /trade/submit enforces the deadline of the leg you signed; a sell signs every leg, so it is bound by the earliest. A buy alternative that had already expired when the quote was built is left out, so quote_index values can skip.
BNB Smart Chain, documented ahead of opening. The reference lists chain: "bnb" and protocol: "bstocks". The venue is not open yet: its listings stay hidden and a buy there is 422 no_routes. See Routing and Priority Mode for what will differ there, and read the listings rather than assuming it is available.
What to do
- Action, if your users' Solana wallets hold no SOL: send
sol_fee_payeron every buy and sell quote. It covers only the quote it rides on: a wallet still short of SOL is refused on the sell (422 no_routes) unless the sell carries it too. Keep about 0.01 SOL in wallets that buyondotokens they do not hold yet. - Action, if you index legs by array position: echo each leg's
quote_indexinstead, because the values can now skip. - Strict response parsers: accept the new per-leg
expires_atandsol_fee_payerkeys, and treatchainandprotocolas open vocabularies. - Nothing else: bridges quoted without
deliverybehave exactly as before.