Skip to main content
POST
Create quote

Authorizations

Authorization
string
header
required

Partner API key in the form Authorization: Bearer fn_....

Headers

X-Idempotency-Key
string
required
Minimum string length: 1

Body

application/json

Unknown top-level fields are ignored rather than rejected.

sourceChain
enum<string>
required
Available options:
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
sourceAsset
required

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.

Available options:
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
destinationChain
enum<string>
required
Available options:
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
destinationAsset
required

An AssetInput, or a token address. An unlisted destination adds minAmountOut and fallback to the quote.

Available options:
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
amount
string
required

Amount in smallest units of the source asset, or destination asset for exact_out; stablecoin exact_out amounts require whole cents.

Pattern: ^[0-9]+$
recipientAddress
string
required

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.

Minimum string length: 1
sourcePaymentMode
enum<string>

Opt in to Orchard funding for zcash:ZEC, exact_in and variable only. Omitted/default preserves transparent funding. Requires an admitted partner and refund address.

Available options:
default,
shielded
destinationPaymentMode
enum<string>

Opt-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.

Available options:
default,
shielded
executionPolicy
object

Provider policy for explicit shielded source or destination. near-intents and hyperunit only; ignored when both payment modes are omitted/default.

amountMode
enum<string>

exact_out pins the destination amount and requires whole cents for stablecoins.

Available options:
exact_in,
exact_out
deliveryMode
enum<string>

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.

Available options:
variable,
fixed
flexibleAmount
boolean

lightning:BTC exact-in variable only: mint an amountless invoice. amount prices an indicative size; the order runs on whatever amount is paid.

descriptionHash
string

lightning:BTC sources only: SHA-256 hex of your LNURL-pay metadata string. The minted BOLT11 carries it as the description hash (h tag) instead of a memo, for wallets that still verify LUD-06. Rejected on other sources.

Pattern: ^[0-9a-fA-F]{64}$
includeCalldata
boolean

Include transaction calldata to fund the order. Supported for EVM native and ERC-20 sources only; unsupported sources return calldata_unsupported_source. Defaults to false.

refundChain
enum<string>

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.

Available options:
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
refundAddress
string

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.

Minimum string length: 1
sourceAddress
string

Optional sender address on the source chain when known at quote time. Screened alongside recipient and refund addresses, and used as the refund/owner address for Execution Layer EVM orders when refundAddress is omitted.

Minimum string length: 1
slippageBps
integer

Slippage tolerance in basis points, subject to the route minimum.

Required range: 0 <= x <= 1000
appFees
object[]

Inline app fees, requiring a server key or dashboard session.

Required array length: 1 - 16 elements
affiliateErrorMode
enum<string>

Opt in to affiliate_not_found / affiliate_disabled for registered affiliate lookup failures. Omitted or legacy preserves invalid_request. HTTP 400 in either mode. Changing this field requires a new idempotency key.

Available options:
legacy,
specific
affiliateId
string

Registered affiliate ID for accrued fees, also accepted from client keys.

affiliateIds
(string | object)[]

Registered affiliate IDs or fee overrides; mutually exclusive with appFees, with overrides requiring a server key or dashboard session.

Required array length: 1 - 16 elements

Registered affiliate ID or { affiliateId, feeBps } override.

Minimum string length: 1
tag
string | null

Your own reporting label, such as an integrator ID. Every order this quote funds carries it, and the dashboard filters and groups by it. Self-reported: anyone holding the key that creates the quote chooses it.

Pattern: ^[A-Za-z0-9._:-]{1,64}$

Response

Quote created

quoteId
string
required
depositAddress
string
required
amountIn
string
required
estimatedOut
string
required

Estimated net recipient amount in destination smallest units.

feeAmount
string
required
totalFeeAmount
string
required
feeAsset
string
required
feeBps
integer
required
route
string[]
required
expiresAt
string
required
execution
object
delivery
object
destinationPaymentMode
enum<string>

Explicit shielded destination acknowledgement; omission must never acknowledge shielded delivery.

Available options:
shielded
sourcePaymentMode
enum<string>
Available options:
shielded
priceValidUntil
string<date-time>

Indicative pricing deadline, distinct from the source funding expiry. Shielded execution must preserve the frozen net recipient minimum.

funding
object
reviewedAssets
object[]

Exact immutable reviewed token identities frozen by the native quote. Omitted for legacy or invalid snapshots; caller metadata cannot set these pins.

Required array length: 1 - 32 elements
transaction
object

Unsigned deposit transfer, returned only with includeCalldata=true on supported EVM sources. No approval is needed. This funds the deposit; it does not execute the swap.

depositMemo
string

Memo or tag required with the deposit when present.

lightningReceiveRequestId
string
flexibleAmount
enum<boolean>

The invoice is amountless. amountIn and estimatedOut price the indicative amount and are rescaled to the amount actually paid.

Available options:
true
amountMode
enum<string>
Available options:
exact_in,
exact_out
targetAmountOut
string
requiredAmountIn
string
maxAcceptedAmountIn
string
inputBufferBps
integer
deliveryMode
enum<string>
Available options:
fixed,
variable
priceLockMode
enum<string>

Action required when the locked price can no longer be honored.

Available options:
strict_requote,
approval_required
indicativeMinAmountOut
string

Indicative minimum for the requested input. Actual-input shielded funding is repriced at market before commitment.

lockedMinAmountOut
string

Minimum locked destination amount in smallest units.

minimumAmountOut
string

Enforced net recipient minimum when supplied by this route.

lightningDeliveryFeeReserveSats
string

Conservative Lightning delivery reserve already deducted from estimatedOut; not an actual fee.

roundingFeeAmount
string
networkCostAmount
string

Quoted network cost in smallest units of networkCostAsset.

networkCostAsset
string

Asset used to pay the quoted network cost.

networkCostRequired
boolean

Whether the quoted network cost must be paid.

networkCosts
object[]

Itemized network costs and quote-time assumptions.

sweepFeeAmount
string
appFeeAmount
string
appFeePlatformCutAmount
string
appFees
object[]
feeAssetDetails
object
feeAmountUsd
string
totalFeeAmountUsd
string
minAmountOut
string

Unlisted destinations only: the least amount of the token, in its smallest units, the recipient receives when the swap succeeds. Enforced on chain at the recipient.

fallback
object

Unlisted destinations only: what the recipient receives if the swap into the token cannot deliver minAmountOut.

source
object
destination
object
tag
string | null

The request's tag; null when none was sent.

readToken
string

Client-key read token for this quote and its order, including private ZeroConf outcomes.