Create quote
Firm price for 2 minutes plus a deposit address on ordinary routes. Explicit shielded ZEC instead returns a 30-minute funding deadline (expiresAt and funding.payBy), a separate two-minute indicative priceValidUntil, and indicativeMinAmountOut. New funding.version=2 quotes accept the canonical confirmed amount actually received and price it at market before freezing the execution minimum. Real provider minimums, fees and funding deadlines still apply. Legacy funding.version=1 quotes retain lockedMinAmountOut and their exact-amount contract. Shielded quotes allocate an Orchard receiver, not a provider deposit; both Unit and NEAR are eligible subject to operational readiness and execution policy. Omitted/default sourcePaymentMode retains existing behavior. Paying the address creates the order. Address screening can reject a quote request, including retries. A screening rejection does not replace a previously issued quote. HyperCore source routes are unavailable until independent deposit verification is supported; HyperCore destinations remain supported.
curl --request POST \
--url https://orchestration.flashnet.xyz/v1/orchestration/quote \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--data '
{
"sourceChain": "base",
"sourceAsset": "USDC",
"destinationChain": "spark",
"destinationAsset": "BTC",
"amount": "50000000",
"recipientAddress": "RECIPIENT_ADDRESS"
}
'const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
sourceChain: 'base',
sourceAsset: 'USDC',
destinationChain: 'spark',
destinationAsset: 'BTC',
amount: '50000000',
recipientAddress: 'RECIPIENT_ADDRESS'
})
};
fetch('https://orchestration.flashnet.xyz/v1/orchestration/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://orchestration.flashnet.xyz/v1/orchestration/quote"
payload = {
"sourceChain": "base",
"sourceAsset": "USDC",
"destinationChain": "spark",
"destinationAsset": "BTC",
"amount": "50000000",
"recipientAddress": "RECIPIENT_ADDRESS"
}
headers = {
"X-Idempotency-Key": "<x-idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Body
- Option 1
- Option 2
Unknown top-level fields are ignored rather than rejected.
An AssetInput, or a token address. A quote whose source is an unlisted token requires refundAddress: a deposit that cannot be sold is refunded in kind there.
AAPL, AI, AMD, AMZN, BNB, BONER, BTC, CASHCAT, COIN, COST, DAI, DELTA, DJT, ETH, GLD, GME, GOOGL, GRAM, HIMS, HSUSD, HYPE, IF, LTC, META, MON, MSFT, MSTR, MU, NVDA, OUSD, PIPEDOG, PLTR, POL, PONS, PYUSD, PathUSD, QQQ, RDDT, SHX, SKHY, SLV, SNDK, SOL, SPCX, SPY, STONKBROKER, TENDIES, TRX, TSLA, TSM, UP, USDB, USDC, USDC.e, USDG, USDT, USDe, USDâ‚®0, USO, WBNB, WBTC, WEN, XMR, XO, XPL, XRP, ZEC, cbBTC, tBTC An AssetInput, or a token address. An unlisted destination adds minAmountOut and fallback to the quote.
AAPL, AI, AMD, AMZN, BNB, BONER, BTC, CASHCAT, COIN, COST, DAI, DELTA, DJT, ETH, GLD, GME, GOOGL, GRAM, HIMS, HSUSD, HYPE, IF, LTC, META, MON, MSFT, MSTR, MU, NVDA, OUSD, PIPEDOG, PLTR, POL, PONS, PYUSD, PathUSD, QQQ, RDDT, SHX, SKHY, SLV, SNDK, SOL, SPCX, SPY, STONKBROKER, TENDIES, TRX, TSLA, TSM, UP, USDB, USDC, USDC.e, USDG, USDT, USDe, USDâ‚®0, USO, WBNB, WBTC, WEN, XMR, XO, XPL, XRP, ZEC, cbBTC, tBTC Destination recipient; use the owner address for Solana tokens, or a Lightning address or compatible BOLT11 invoice for Lightning. A BOLT11 invoice needs at least 20 seconds of life left when quoted: an expired invoice returns 400 destination_bolt11_expired, and one with less time left returns 400 invoice_expiring_soon. Fund quotes for short-lived invoices immediately.
1Opt-in for native zcash:ZEC exact_in variable shielded delivery to a mainnet Unified Address with an Orchard receiver. Omitted/default leaves destination delivery unchanged. Unsupported combinations must be rejected, including same-asset ZEC and combined shielded source/destination. Available to authenticated partners and appropriately scoped client keys. Changing the selector requires a new idempotency key.
default, shielded Fixed-output quotes require exact_in, an eligible route, and partner approval. A route accepts fixed only where /v2/orchestration/routes reports fixedEligible (fixedTo); other routes return 400 fixed_delivery_unsupported_route. Fixed estimates are indicative; quotes validate exact-output affordability before returning deposit instructions. Fixed stablecoin routes to Solana USDC include recipient token-account creation costs upfront and preserve the quoted payout.
variable, fixed Chain of refundAddress; the source chain when omitted. A route that refunds on the source chain alone returns invalid_refund_address for any other chain.
arbitrum, arc, avalanche, base, bitcoin, bsc, ethereum, hedera, hypercore, hyperevm, lightning, litecoin, monad, monero, optimism, plasma, polygon, robinhood, sei, solana, spark, tempo, ton, tron, xrp, zcash Source-chain refund address where required by the route; sanctioned addresses are rejected. For Tron-source quotes, a supplied nonblank target must match the Tron address format (T followed by 33 base58 characters) and must not be a listed token-contract or burn address; otherwise the quote returns invalid_refund_address before pricing. This format check does not verify the checksum. Required when sourceAsset is an unlisted token (invalid_request otherwise): a deposit that cannot be sold is refunded there in the source token. For default zcash:ZEC funding, a supplied nonblank refund address must be a checksum-valid mainnet transparent t1 or t3 address. With sourcePaymentMode=shielded, refundAddress is required and accepts explicit mainnet t1/t3 or a supported Orchard Unified Address validated by custody before publication. Transparent refunds expose the return output; a Unified refund never falls back to a transparent receiver. TEX refunds are unsupported. Invalid transparent targets return invalid_refund_address.
1Registered affiliate IDs or fee overrides; mutually exclusive with appFees, with overrides requiring a server key or dashboard session.
1 - 16 elements- string
- object
Registered affiliate ID or { affiliateId, feeBps } override.
1Response
Quote created
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Was this page helpful?
curl --request POST \
--url https://orchestration.flashnet.xyz/v1/orchestration/quote \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--data '
{
"sourceChain": "base",
"sourceAsset": "USDC",
"destinationChain": "spark",
"destinationAsset": "BTC",
"amount": "50000000",
"recipientAddress": "RECIPIENT_ADDRESS"
}
'const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
sourceChain: 'base',
sourceAsset: 'USDC',
destinationChain: 'spark',
destinationAsset: 'BTC',
amount: '50000000',
recipientAddress: 'RECIPIENT_ADDRESS'
})
};
fetch('https://orchestration.flashnet.xyz/v1/orchestration/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://orchestration.flashnet.xyz/v1/orchestration/quote"
payload = {
"sourceChain": "base",
"sourceAsset": "USDC",
"destinationChain": "spark",
"destinationAsset": "BTC",
"amount": "50000000",
"recipientAddress": "RECIPIENT_ADDRESS"
}
headers = {
"X-Idempotency-Key": "<x-idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)