Cloak API

How fees are built

Cloak reports each fee separately in the source token. amountOut is the amount the recipient receives after all fees.

ComponentWho receives itShape
networkFeeBurned on-chainEstimated Solana cost for the payout, shown in the source token.
veiloFeeVeiloA percentage of the input, subject to a minimum fee.
partnerFeeYouYour feeBps applied to the input and sent to the eligible feeRecipientAddress selected for the order.

A real order, reconciled

exact_out · veilo-usdc · feeBps 50 · mainnet

Sender is debited10,091.01amountIn
− network fee0.19networkFee
− Veilo40.36veiloFee
− your share50.46partnerFee · 0.50%
Total fee91.01fee
Recipient receives10,000.00amountOut

The sender also needs roughly 0.002 SOL for the deposit transaction. This cost is paid directly by the sender's wallet and is not included in fee.

A swap is priced in the destination asset

On a private swap every fee is denominated in the destination token, and a fourth component appears: poolSwapFee, charged by the destination pool and neither ours nor yours.

Use the quote

Fixed costs can make small transfers a higher effective percentage. Do not calculate the fee schedule yourself. Display amountIn, amountOut, and feeBreakdown from the latest quote.

The quote is authoritative

Fees may change with Solana conditions and account requirements. Always use the latest quote instead of storing fixed rates in your app.

See POST /quote for the complete response format.