Quickstart
Swap 1 ETH to SOL end to end in four calls.
Collecting your fee
Charging a fee? The four steps that decide whether a swap pays you.
Execution types
The one field your integration branches on.
API Reference
Every endpoint, request, and response.
Base URL
- Content type:
application/json - Amounts: always strings, in the token’s smallest unit (wei, lamports, satoshis).
- Native coin: use the sentinel
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE. For Solana native SOL, use its mintSo1111...1112.
Every call works with no
x-api-key header at all if you just want to try it, but
get a free key first if you can. It’s instant, no review, and quadruples
your rate limit. See Authentication for the full tier breakdown. RAVN itself
charges 0 bps, always. Integrators set their own swap fee on their key and get paid their share;
every quote reports the applied fee. A swap pays you once
your code pays any fee the execution asks for and reports the swap to /status until it is
final: see Collecting your fee and Pricing.Why it is different
Most swap APIs do one thing, an EVM transaction, so their whole surface assumes it. RAVN spans three genuinely different execution models, and every quote resolves to exactly oneexecutionType. Your integration reads that one field and branches. That is the whole contract.
See Supported Chains & Venues for which type each venue returns and when: a few
depend on the source chain or execution mode. Hinkal, a private venue you opt into, first asks the
paying wallet for two signatures (
AUTHORIZE) before its TRANSACTION: see
Execution Types.
The response envelope
Every response has the same shape.x-request-id and ravn-version headers. Log the requestId and
quote it when you contact support.
