Submit a Definitive Flash order
Moves user funds, authorized by the funder's own Ed25519 signature over the quoted payload (userSignature + svmNonce + svmDeadline echoed from the quote). Market orders also require quoteId.
Body·
required
application/json
Flash order with funder signature
- Type: stringfunder
Address required - Type: stringqtyrequired
- Type: "buy" or "sell"enumsiderequired
- Type: stringsvm
Deadline required - Type: stringsvm
Nonce required - Type: stringuser
Signature requiredFunder's Ed25519 signature over the quoted payload
- Type: stringcontra
Chain - Type: stringenumorder
Type valuesmarketlimittwapstopstop-losstake-profit - Type: stringquote
Id Required for market orders
- 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/order
curl https://api.musebook.trade/api/flash/order \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"targetChain": "solana",
"contraChain": "solana",
"side": "buy",
"qty": "",
"orderType": "market",
"funderAddress": "",
"userSignature": "",
"svmNonce": "",
"svmDeadline": "",
"quoteId": "",
"additionalProperty": "anything"
}'
{
"ok": true,
"additionalProperty": "anything"
}