Cloak API
Cloak API
Add private Solana transfers to your product without sending users to another app or asking recipients to claim funds.
What You Can Build
Use Cloak anywhere a product needs to move tokens without directly linking the funding wallet to the recipient on-chain.
Wallet & Exchange Withdrawals
Let a user withdraw to a chosen Solana address without directly linking that destination to the wallet that funded the transfer.
Merchant Checkout
Let a customer pay a merchant's Solana address without creating a direct on-chain link between their wallets.
Payroll & Contractor Payments
Pay employees, contractors, creators, or affiliates without directly linking a treasury wallet to every recipient.
Configure the Transfer
| Your flow | Use | Result |
|---|---|---|
| The sender chooses what to spend | exact_in | Cloak calculates what the recipient receives. |
| The recipient must receive a fixed amount | exact_out | Cloak calculates what the sender pays. |
| Your product earns a transfer fee | feeBps | Cloak pays the configured share to an eligible fee wallet. |
API at a Glance
https://api.veilo.network/cloak/v1How Cloak Works
A Cloak transfer uses separate deposit and payout transactions with a variable delay between them.
Your user signs
The deposit enters the pool
The API returns a transaction. Your app asks the user to sign and submit it.
Cloak processes the order
A variable delay
The delay helps separate the deposit from the payout on-chain.
Veilo signs and pays
The recipient is credited
Veilo sends tokens from the shared pool to the recipient's standard Solana address.
Keep SOL available for the deposit
What Cloak Guarantees
| Guarantee | What it means for your integration |
|---|---|
| Your user signs once | No redirect, second signature, or recipient action is required. |
| amountOut is net of every fee | The number you show is the number the recipient receives. |
| Limit errors include valid bounds | You can show the supported minimum or maximum instead of a generic error. |
| Final status is reliable | Stop polling when final is true. |
Integration Requirements
Confirm these requirements before building the order flow.
| Requirement | Detail |
|---|---|
| v0 transaction signing | Your wallet layer must sign and submit the versioned (v0) transaction returned by Cloak. See Signing the transaction. |
| SOL for the deposit | Keep about 0.002 SOL beyond the transfer amount for the deposit transaction. |
Next Steps
Set Up Your Account
Create a portal account, complete your profile, and configure a fee wallet.
Make Your First Transfer
Follow the complete quote, order, signing, and status flow.
Configure Authentication
Create a server-side API key and plan safe rotation.
Review the Privacy Model
Understand what Cloak protects and how to describe it accurately.
