Swap tokens privately within Vanish’s shielded execution layer, giving you the simplicity of a DEX with the added benefit of full transaction privacy at lightning-fast speeds.
From the main navigation of the widget, click Swap. This opens the dedicated swap interface. The layout shows:
An input field (for the token you’re selling).
An output field (for the token you want to buy).
Customisable TradeSettings (fees, slippage etc.).
Selecting Settings allows you to customize parameters to support the trade:
Max Slippage – The maximum price change you’ll allow before a trade fails
Anti-MEV (Jito) – Protects trades from front-running by routing through Jito
Priority Fee – Extra fee to speed up transaction processing
To perform a swap in shielded mode, click the dropdown in the input field. This will display the tokens you’ve previously enabled for shielding (e.g., if you shielded SOL and USDC, both will be available). Select the token you want to trade, the widget displays your shielded balance for that token directly above the field.In the input field, type the amount you want to trade. The widget automatically calculates:
Estimated output: the amount you will receive after the 0.5% trading fee.
Exchange rate: the price between your input and output tokens.
Minimum received: the guaranteed minimum amount after slippage protection (based on your slippage tolerance settings).
Select the token you wish to receive in the output field. You can also enter the output amount first, and the widget will calculate how much input is required.
Vanish currently supports only SOL-paired swaps, meaning SOL must be either the input or the output token. This design ensures liquidity efficiency and supports compliance.
Before finalizing, carefully review the trade details. If everything looks correct, click the Execute button. Your connected wallet (e.g., Phantom) will open with the transaction summary, showing the tokens being exchanged and the Solana network fee. Click Confirm to authorize the swap. Within seconds, Solana confirms the trade and the Vanish widget updates your shielded mode balances:
Your input token decreases (plus the 0.5% fee).
Your output token increases by the received amount.
The output token appears in the Assets section of the widget, ready for your next trade.Behind the scenes, trades are routed through Vanish’s shielded execution layer, which severs the direct on-chain link between your wallet and the swap. On-chain observers see only that a shielded transaction occurred; they cannot trace which wallet initiated it or link it to your broader trading activity.
Private: shielded swaps cannot be connected on-chain.
Performance: swaps finalize at lightning speeds using competitive market pricing.
The Swap page feels like any familiar DEX: choose tokens, set an amount, approve, and swap. The difference is that every step happens privately in Vanish’s shielded execution layer, giving you the same ease of use with stronger protection, alpha preservation, and compliance safeguards.
⌘I
{"docsConfig":{"theme":"linden","$schema":"https://mintlify.com/docs.json","name":"Vanish Documentation","colors":{"primary":"#038d96","light":"#00dae9","dark":"#00dae9"},"logo":{"light":"https://mintcdn.com/vanish-24b0038b/9SPoc6aj_UQfuhgf/logo/light.svg?fit=max\u0026auto=format\u0026n=9SPoc6aj_UQfuhgf\u0026q=85\u0026s=660f10074455650f17207216515fad66","dark":"https://mintcdn.com/vanish-24b0038b/9SPoc6aj_UQfuhgf/logo/dark.svg?fit=max\u0026auto=format\u0026n=9SPoc6aj_UQfuhgf\u0026q=85\u0026s=c35b9104c33bcab1c10e39b47799b64a"},"favicon":"https://mintcdn.com/vanish-24b0038b/4ka56y7Rivzekh1T/favicon.svg?fit=max\u0026auto=format\u0026n=4ka56y7Rivzekh1T\u0026q=85\u0026s=2dfab2ae5b8d18e3a01142e144b92741","navbar":{"links":[{"href":"https://discord.gg/vanishtrade","label":"Support"}],"primary":{"type":"button","label":"Start Trading","href":"https://vanish.trade"}},"footer":{"socials":{"x":"https://x.com/vanishTrade","discord":"https://discord.gg/vanishtrade","website":"https://vanish.trade"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vanish-24b0038b","hasAudioNarration":false,"actualSubdomain":"vanish-24b0038b","customDomains":["docs.vanish.trade"],"gitSource":{"type":"github","owner":"vanish-trade","repo":"platform-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e7e6b8c65e77d667acab","collectionId":"ac34e38c-d0fd-4534-93a1-4c675262bece","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21e7e6b8c65e77d667acab:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Guides","count":10},{"language":"default","tag":"Guide","count":3},{"language":"default","tag":"Platform","count":3},{"language":"default","tag":"Legal","count":2},{"language":"default","tag":"Getting Started","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"guide/trade","slug":"/guide/trade","pageMetadata":{"title":"Swap Tokens","description":"Swap tokens privately within Vanish’s shielded execution layer, giving you the simplicity of a DEX with the added benefit of full transaction privacy at lightning-fast speeds.","mode":"wide","icon":"rotate","og:image":"https://i.ibb.co/nv3X7kC/Banner-Twitter-3.png","sidebarTitle":"Swap ","href":"/guide/trade"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Swap tokens privately within Vanish’s shielded execution layer, giving you the simplicity of a DEX with the added benefit of full transaction privacy at lightning-fast speeds.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={hr:`hr`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Info,OptimizedImage}=_components;if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsx(OptimizedImage,{src:`https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.51.42am.jpg?fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=4c4ae1828fb054076c4688e7b2f0dd92`,alt:`2025 09 244 51 52pm Jp`,\"data-og-width\":`1280`,width:`1280`,\"data-og-height\":`719`,height:`719`,\"data-path\":`2025-10-2711.51.42am.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.51.42am.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=8f5eb8cda95c05ecd9d7efe849ee13b8 280w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.51.42am.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=fb1f4160c8bc024b181e9c34d2af0557 560w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.51.42am.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=f2c5b4558ba12f1a7c380c541bdd2a40 840w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.51.42am.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=c0fefbfe823e63fe66713480d4f177cd 1100w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.51.42am.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=917f91adbf9abf1b45fbc0fc26fb314e 1650w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.51.42am.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=d4bb6b371970efbe026c11eafdb0baa6 2500w`}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(_components.p,{children:[`From the main navigation of the widget, click `,_jsx(_components.strong,{children:`Swap`}),`. This opens the dedicated swap interface. The layout shows:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`An `,_jsx(_components.strong,{children:`input field`}),` (for the token you’re selling).`]}),`\n`,_jsxs(_components.li,{children:[`An `,_jsx(_components.strong,{children:`output field`}),` (for the token you want to buy).`]}),`\n`,_jsxs(_components.li,{children:[`Customisable `,_jsx(_components.strong,{children:`Trade`}),` `,_jsx(_components.strong,{children:`Settings`}),` (fees, slippage etc.).`]}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/vanish-24b0038b/0igx45K5oY3bdc1D/images/2025-09-245.00.01pm.jpg?fit=max\u0026auto=format\u0026n=0igx45K5oY3bdc1D\u0026q=85\u0026s=4410a97cf6f064d187e9488953e5112a`,alt:`2025 09 245 00 01pm Jp`,\"data-og-width\":`1280`,width:`1280`,\"data-og-height\":`688`,height:`688`,\"data-path\":`images/2025-09-245.00.01pm.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/vanish-24b0038b/0igx45K5oY3bdc1D/images/2025-09-245.00.01pm.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=0igx45K5oY3bdc1D\u0026q=85\u0026s=1474a0ac001817a3b037235e5d00a98a 280w, https://mintcdn.com/vanish-24b0038b/0igx45K5oY3bdc1D/images/2025-09-245.00.01pm.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=0igx45K5oY3bdc1D\u0026q=85\u0026s=e03d848eb68f4279b74c7e67ebe62e1c 560w, https://mintcdn.com/vanish-24b0038b/0igx45K5oY3bdc1D/images/2025-09-245.00.01pm.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=0igx45K5oY3bdc1D\u0026q=85\u0026s=7870d996c3fa798218d250278f17e220 840w, https://mintcdn.com/vanish-24b0038b/0igx45K5oY3bdc1D/images/2025-09-245.00.01pm.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=0igx45K5oY3bdc1D\u0026q=85\u0026s=ca8809df78715468ec9060bdfa7c4264 1100w, https://mintcdn.com/vanish-24b0038b/0igx45K5oY3bdc1D/images/2025-09-245.00.01pm.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=0igx45K5oY3bdc1D\u0026q=85\u0026s=2b308f450c764c3f6f8a151682da98f7 1650w, https://mintcdn.com/vanish-24b0038b/0igx45K5oY3bdc1D/images/2025-09-245.00.01pm.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=0igx45K5oY3bdc1D\u0026q=85\u0026s=283d45fb819a36f2ad223cfc0f3748fc 2500w`}),`\n`,_jsxs(_components.p,{children:[`Selecting `,_jsx(_components.strong,{children:`Settings`}),` allows you to customize parameters to support the trade:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Max Slippage`}),` – The maximum price change you’ll allow before a trade fails`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Anti-MEV (Jito)`}),` – Protects trades from front-running by routing through Jito`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Priority Fee`}),` – Extra fee to speed up transaction processing`]}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.52.38am.jpg?fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=acc01e98f83c8267e22d8cbf3ce1b67d`,alt:`2025 09 245 11 19pm Jp`,\"data-og-width\":`1228`,width:`1228`,\"data-og-height\":`1054`,height:`1054`,\"data-path\":`2025-10-2711.52.38am.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.52.38am.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=5c198af51c5e771b68ce285a89df713c 280w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.52.38am.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=eb39d01d93f824116ae15501d027dad9 560w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.52.38am.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=def65baa2c6284690b5e12123bb41718 840w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.52.38am.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=ab1deaa5bfaea745a9bcdf48e4faabe3 1100w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.52.38am.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=680732b27a9b731ab153d10e2073cce9 1650w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.52.38am.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=780467e27b46edddc94391acc84c59ed 2500w`}),`\n`,_jsx(_components.p,{children:`To perform a swap in shielded mode, click the dropdown in the input field. This will display the tokens you’ve previously enabled for shielding (e.g., if you shielded SOL and USDC, both will be available). Select the token you want to trade, the widget displays your shielded balance for that token directly above the field.`}),`\n`,_jsx(_components.p,{children:`In the input field, type the amount you want to trade. The widget automatically calculates:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Estimated output`}),`: the amount you will receive after the 0.5% trading fee.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Exchange rate`}),`: the price between your input and output tokens.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Minimum received`}),`: the guaranteed minimum amount after slippage protection (based on your slippage tolerance settings).`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Select the token you wish to receive in the output field. You can also enter the `,_jsx(_components.strong,{children:`output amount`}),` first, and the widget will calculate how much input is required.`]}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`Vanish currently supports only SOL-paired swaps, meaning SOL must be either the input or the output token. This design ensures liquidity efficiency and supports compliance.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.53.29am.jpg?fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=13cb5bfab4e76423c0098dfb0b2a8e0e`,alt:`2025 09 245 23 51pm Jp`,\"data-og-width\":`1280`,width:`1280`,\"data-og-height\":`805`,height:`805`,\"data-path\":`2025-10-2711.53.29am.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.53.29am.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=af431a3e4cff46327f5a7b935c15d987 280w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.53.29am.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=cf619000bb51953038a63b851a25423d 560w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.53.29am.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=2a7b66d386871834cb76142ce07a6de9 840w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.53.29am.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=e7623a364722b5014b4bc4f160a050dd 1100w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.53.29am.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=b8c9f162901ce1b9c2b9c1c5c854ee6d 1650w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.53.29am.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=215a54aa8f782317f360d30c176d4af9 2500w`}),`\n`,_jsxs(_components.p,{children:[`Before finalizing, carefully review the trade details. If everything looks correct, click the `,_jsx(_components.strong,{children:`Execute`}),` button. Your connected wallet (e.g., Phantom) will open with the transaction summary, showing the tokens being exchanged and the Solana network fee. Click `,_jsx(_components.strong,{children:`Confirm`}),` to authorize the swap. Within seconds, Solana confirms the trade and the Vanish widget updates your shielded mode balances:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Your input token decreases (plus the 0.5% fee).`}),`\n`,_jsx(_components.li,{children:`Your output token increases by the received amount.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The output token appears in the `,_jsx(_components.strong,{children:`Assets`}),` section of the widget, ready for your next trade.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.56.13am.jpg?fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=b05d541abd40fad477577a4b36d37d78`,alt:`2025 09 245 34 38pm Jp`,\"data-og-width\":`1280`,width:`1280`,\"data-og-height\":`860`,height:`860`,\"data-path\":`2025-10-2711.56.13am.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.56.13am.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=4080d8e696f3c6a76b3507fb67908291 280w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.56.13am.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=b48d5c7ce8796d99848c32075ec1a4d8 560w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.56.13am.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=39e5c1a28426921915e4bdd7275aec40 840w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.56.13am.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=5fbc9c7a69b9f6040fcca5b0ba3c1ab9 1100w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.56.13am.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=3b1111f3186d3dfc4a1e68f9468cdc95 1650w, https://mintcdn.com/vanish-24b0038b/DeHqD1G9Jt4zFuh3/2025-10-2711.56.13am.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=DeHqD1G9Jt4zFuh3\u0026q=85\u0026s=c397487ab06e355bcd404061a6be2fb7 2500w`}),`\n`,_jsx(_components.p,{children:`Behind the scenes, trades are routed through Vanish’s shielded execution layer, which severs the direct on-chain link between your wallet and the swap. On-chain observers see only that a shielded transaction occurred; they cannot trace which wallet initiated it or link it to your broader trading activity.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Private`}),`: shielded swaps cannot be connected on-chain.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Performance`}),`: swaps finalize at lightning speeds using competitive market pricing.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Swap`}),` page feels like any familiar DEX: choose tokens, set an amount, approve, and swap. The difference is that every step happens privately in Vanish’s shielded execution layer, giving you the same ease of use with stronger protection, alpha preservation, and compliance safeguards.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Swap Tokens","description":"Swap tokens privately within Vanish’s shielded execution layer, giving you the simplicity of a DEX with the added benefit of full transaction privacy at lightning-fast speeds.","mode":"wide","icon":"rotate","og:image":"https://i.ibb.co/nv3X7kC/Banner-Twitter-3.png","sidebarTitle":"Swap ","href":"/guide/trade"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"vanish-24b0038b","siteName":"Vanish Documentation","title":"Swap Tokens - Vanish Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-10-27T12:01:02.212Z","originalFileLocation":"guide/trade.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Swap tokens privately within Vanish’s shielded execution layer, giving you the simplicity of a DEX with the added benefit of full transaction privacy at lightning-fast speeds.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Vanish Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vanish-24b0038b/4VMC3vFo3eBI1W-U/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/vanish-24b0038b/4VMC3vFo3eBI1W-U/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vanish-24b0038b/4VMC3vFo3eBI1W-U/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/vanish-24b0038b/4VMC3vFo3eBI1W-U/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/vanish-24b0038b/4VMC3vFo3eBI1W-U/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vanish-24b0038b/4VMC3vFo3eBI1W-U/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vanish-24b0038b/4VMC3vFo3eBI1W-U/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/vanish-24b0038b/4VMC3vFo3eBI1W-U/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/vanish-24b0038b/4VMC3vFo3eBI1W-U/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Swap Tokens - Vanish Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Swap tokens privately within Vanish’s shielded execution layer, giving you the simplicity of a DEX with the added benefit of full transaction privacy at lightning-fast speeds.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Vanish Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.vanish.trade/guide/trade\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://i.ibb.co/nv3X7kC/Banner-Twitter-3.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Swap Tokens - Vanish Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Swap tokens privately within Vanish’s shielded execution layer, giving you the simplicity of a DEX with the added benefit of full transaction privacy at lightning-fast speeds.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://i.ibb.co/nv3X7kC/Banner-Twitter-3.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/vanish-24b0038b/4VMC3vFo3eBI1W-U/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Vanish Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#038d96\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.vanish.trade/guide/trade\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guide/trade.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.vanish.trade/#organization\",\"name\":\"Vanish Documentation\",\"url\":\"https://docs.vanish.trade\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vanish-24b0038b/9SPoc6aj_UQfuhgf/logo/light.svg?fit=max\u0026auto=format\u0026n=9SPoc6aj_UQfuhgf\u0026q=85\u0026s=660f10074455650f17207216515fad66\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.vanish.trade#website\",\"name\":\"Vanish Documentation\",\"url\":\"https://docs.vanish.trade\",\"publisher\":{\"@id\":\"https://docs.vanish.trade/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.vanish.trade/guide/trade#webpage\",\"url\":\"https://docs.vanish.trade/guide/trade\",\"name\":\"Swap Tokens\",\"description\":\"Swap tokens privately within Vanish’s shielded execution layer, giving you the simplicity of a DEX with the added benefit of full transaction privacy at lightning-fast speeds.\",\"dateModified\":\"2025-10-27T12:01:02.212Z\",\"isPartOf\":{\"@id\":\"https://docs.vanish.trade#website\"},\"breadcrumb\":{\"@id\":\"https://docs.vanish.trade/guide/trade#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.vanish.trade/guide/trade#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guide\",\"item\":\"https://docs.vanish.trade/guide/shield\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Swap Tokens\",\"item\":\"https://docs.vanish.trade/guide/trade\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.vanish.trade/guide/trade#article\",\"headline\":\"Swap Tokens\",\"name\":\"Swap Tokens\",\"description\":\"Swap tokens privately within Vanish’s shielded execution layer, giving you the simplicity of a DEX with the added benefit of full transaction privacy at lightning-fast speeds.\",\"url\":\"https://docs.vanish.trade/guide/trade\",\"mainEntityOfPage\":{\"@id\":\"https://docs.vanish.trade/guide/trade#webpage\"},\"image\":\"https://i.ibb.co/nv3X7kC/Banner-Twitter-3.png\",\"dateModified\":\"2025-10-27T12:01:02.212Z\",\"publisher\":{\"@id\":\"https://docs.vanish.trade/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.vanish.trade#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Vanish Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Vanish Documentation","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Getting Started","pages":[{"title":"Welcome to Vanish","mode":"wide","icon":"staff-snake","sidebarTitle":"Welcome to Vanish","href":"/start/welcome"},{"title":"Vanish Integrity Framework (VIF)","icon":"user-shield","sidebarTitle":"Integrity Framework","mode":"wide","href":"/start/integrity"}]},{"group":"Guide","pages":[{"title":"Shield","description":"Shielding is the process of enabling Vanish’s shielded execution layer to protect your trades. ","icon":"arrow-right","mode":"wide","sidebarTitle":"Shield","href":"/guide/shield"},{"title":"Swap Tokens","mode":"wide","icon":"rotate","sidebarTitle":"Swap ","href":"/guide/trade"},{"title":"Unshield","description":"Unshielding is the process of disabling Vanish’s shielded execution layer and making your assets visible on-chain again. ","icon":"arrow-left","mode":"wide","sidebarTitle":"Unshield","href":"/guide/unshield"}]},{"group":"Platform","pages":[{"title":"Silent Rewards","mode":"wide","icon":"money-check-dollar","sidebarTitle":"Silent Rewards","href":"/platform/rewards"},{"mode":"wide","icon":"coins","title":"Points","href":"/platform/points"},{"title":"Referral Program","mode":"wide","icon":"people-arrows","sidebarTitle":"Referral Program","href":"/platform/referral"}]},{"group":"Legal","pages":[{"title":"Terms of Service","icon":"file-contract","mode":"wide","href":"/legal/tos"},{"title":"Privacy Policy","icon":"address-book","mode":"wide","href":"/legal/privacy-policy"}]}]}]},"basePath":"","title":"Swap Tokens - Vanish Documentation","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-BG6oD64b.js","lightbox-handle-r17bVUz3.js"]}