Quote a Definitive Flash swap (Solana only)
Read-only quote plus signing payloads. The Flash integrator key is injected server-side. Solana same-chain only; EVM-only fields are stripped.
Body·
required
application/json
Flash quote terms
- Type: stringfunder
Address required - Type: stringqtyrequired
Positive decimal string in the spent asset's units
- Type: "buy" or "sell"enumsiderequired
- Type: stringcontra
Chain - Type: integerduration
Seconds Integer numbers.
- Type: stringexpire
Time - Type: stringlimit
Cross Price - Type: stringlimit
Notional Price - Type: stringmax
Price Impact - Type: stringmax
Slippage - Type: stringenumorder
Type valuesmarketlimittwapstopstop-losstake-profit - Type: stringtarget
Chain - additionalPropertyType: anythingproperty
Name
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for post/api/flash/quote
curl https://api.musebook.trade/api/flash/quote \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"targetChain": "solana",
"contraChain": "solana",
"side": "buy",
"qty": "",
"orderType": "market",
"funderAddress": "",
"maxSlippage": "",
"maxPriceImpact": "",
"limitNotionalPrice": "",
"limitCrossPrice": "",
"triggers": [
{}
],
"durationSeconds": 1,
"expireTime": "",
"additionalProperty": "anything"
}'
{
"ok": true,
"additionalProperty": "anything"
}