Backend Reference
Request a firm quote
Requests firm swap terms from the runtime.
The route accepts two equivalent request shapes:
- Friendly (preferred):
input_asset,output_asset, and a decimalamountstring. Asset identifiers are case-insensitive and accept the values listed in/v1/assets[*].aliases. - Legacy:
input_mint,output_mint, andinput_amount_rawinteger. Existing API consumers can keep using this shape.
The response always includes the legacy raw fields plus
display-friendly pair, input, output, and next_action fields
on accepted RFQs and a message plus suggested_action on rejected
RFQs.
POST
Body
application/json
- Option 1
- Option 2
Case-insensitive asset id or symbol (e.g. USDC, usdc).
Example:
"USDC"
Example:
"SOL"
Decimal amount in the input asset's display units, sent as a string.
Example:
"1.00"
Solana wallet address.
Example:
"11111111111111111111111111111111"
Required range:
x >= 1Example:
30
Response
Accepted quote terms or a risk rejection.
- Option 1
- Option 2
Allowed value:
"accepted"Required range:
x >= 0Example:
1000
Required range:
0 <= x <= 10000Example:
35
Available options:
runtime_orchestrated