On Solana, fee sponsorship and rent sponsorship are separate concepts.Fee sponsorship covers the network fee for a transaction. Rent sponsorship covers the rent-exempt lamports needed when instructions create new accounts. Rent sponsorship is available on Enterprise plans. It is disabled by default and must be enabled separately in the Turnkey dashboard. If you’re on a Pay-as-you-go or Pro plan, please reach out.When rent is enabled:
If an instruction creates a new account and the user signer is the payer, Turnkey pre-funds that signer for the rent-exempt amount. The amount is based on the size of the new account data and is intended to make the account rent exempt.
Sponsored rent is added to your monthly gas bill and counts toward the same spend limits used for sponsored transaction fees. See Spend limits.
If your product sponsors transactions that create accounts and you want rent covered for your users, you must enable rent sponsorship in the Turnkey dashboard. Here is how you can do this:
Enable gas sponsorship.
Turn on Sponsor Solana Rent.
Click Save Configuration.
Refunded rent from later-closed accounts follows Solana account rules. It
does not automatically return to the sponsor.
Solana accounts can be closed after they’re created, and when that happens, the rent previously deposited into the account is returned according to Solana account rules, usually to the configured destination for the close operation.That destination is usually the signer or account owner, not the sponsor that originally funded the rent.This creates a rent extraction risk for sponsored Solana transactions: the sponsor covers the rent needed to create the account, but the refunded rent can later flow back to the signer instead.This means that when your organization pays for rent upfront, and those accounts are later closed, the refunded lamports may go to the signer, not back to you.This can be exploited maliciously, but it also happens naturally in ordinary product flows.A common example is a swap that temporarily wraps SOL into wSOL, uses that account during execution, and then closes the temporary account before the transaction completes.In a self-funded flow, the rent simply returns to the user. In a sponsored flow, that same rent may have been pre-funded by the sponsor and then refunded back to the signer.
One practical guardrail is to inspect the transaction payload before submission and remove SPL Token CloseAccount instructions.This is especially useful when you receive a prebuilt transaction from a routing service such as Jupiter and want to keep your sponsored flow from immediately refunding rent back to the signer.In the SPL Token program, CloseAccount is instruction discriminator 9. A simple filter can remove those instructions before you hand the transaction to Turnkey:
Disable Jupiter auto wrap and unwrap for SOL flows
Another useful guardrail is to disable Jupiter’s automatic SOL wrapping and unwrapping behavior when you request the swap transaction.When wrapAndUnwrapSol is enabled, Jupiter may create a temporary wSOL account for the transaction and then close it before completion. In a sponsored flow, that pattern can create a rent refund path back to the signer.To prevent that, set wrapAndUnwrapSol to false in the Jupiter API request:
With this setting disabled, your application should manage wSOL explicitly instead of relying on Jupiter to create and close a temporary account on the user’s behalf.This higher-control approach is often a better fit for sponsored flows because it lets you:
reuse a persistent wSOL account instead of creating a fresh one per swap
avoid automatic close-account behavior in the routed transaction
review account lifecycle decisions on the backend before submission
For products with tighter controls, the strongest approach is usually to combine both mitigations: disable auto wrap and unwrap where possible, and still validate or sanitize the final instruction payload before sending it.
If end users can export or independently control the signer key, these mitigations are less effective. A user who controls the signer can submit their own transaction to close previously created accounts and reclaim rent, bypassing any filtering your application applies.In these architectures, server-side mitigations like instruction filtering are no longer sufficient on their own. Spend caps, rate limits, monitoring, and policies become your primary line of defense.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Turnkey","colors":{"primary":"#4C48FF","light":"#4C48FF","dark":"#050a0b"},"logo":{"light":"https://mintcdn.com/turnkey-0e7c1f5b/YQKQ_azrjtJ471Qy/logo/light.svg?fit=max\u0026auto=format\u0026n=YQKQ_azrjtJ471Qy\u0026q=85\u0026s=38556c8732a1d68a5399fce905b480b1","dark":"https://mintcdn.com/turnkey-0e7c1f5b/YQKQ_azrjtJ471Qy/logo/dark.svg?fit=max\u0026auto=format\u0026n=YQKQ_azrjtJ471Qy\u0026q=85\u0026s=98f8b7cda703a0db60ac27ff2230e82a","href":"https://www.turnkey.com/"},"favicon":"https://mintcdn.com/turnkey-0e7c1f5b/G2SswZbcSJ7UNXDG/favicon.svg?fit=max\u0026auto=format\u0026n=G2SswZbcSJ7UNXDG\u0026q=85\u0026s=3ebddfc4d9bf146ad2e2dd286f2ead54","navbar":{"links":[{"href":"/solutions/support/overview","label":"Support"},{"href":"https://www.turnkey.com/blog","label":"Blog"},{"href":"https://www.turnkey.com/contact-us","label":"Contact us"}],"primary":{"type":"button","label":"Get started","href":"https://app.turnkey.com/dashboard/auth/initial"}},"footer":{"socials":{"x":"https://x.com/turnkeyhq","github":"https://github.com/tkhq","linkedin":"https://www.linkedin.com/company/turnkeyhq"}},"seo":{"metatags":{"og:image":"https://docs.turnkey.com/images/og-image.png"}},"styling":{"codeblocks":"system","latex":true},"integrations":{"ga4":{"measurementId":"G-VRJJ2TSC23"},"gtm":{"tagId":"GTM-PN838HQC"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"markdown":{"instructions":["Turnkey is wallet infrastructure: create and manage crypto wallets, sign transactions, and enforce policy-based access controls. Best-fit uses: embedded consumer wallets (email/passkey/social auth, no seed phrases), automated onchain operations with server-side wallets, AI agent wallets with policy-scoped signing, enterprise key management, and verifiable off-chain workloads on Turnkey Verifiable Cloud (TVC).","Every API call is a JSON POST to https://api.turnkey.com signed with a P-256 API key; create an organization and key self-serve at https://app.turnkey.com.","Key Turnkey developer resources: API reference (https://docs.turnkey.com/api-reference/overview/intro.md), OpenAPI spec (https://docs.turnkey.com/public_api.swagger.json), authentication (https://docs.turnkey.com/features/authentication/overview.md), webhooks (https://docs.turnkey.com/features/webhooks/overview.md), MCP server for docs search (https://docs.turnkey.com/mcp), agent skills (https://docs.turnkey.com/get-started/ai-skills.md), CLI (https://docs.turnkey.com/sdks/cli.md), SDK reference (https://docs.turnkey.com/sdks/introduction.md), full docs content (https://docs.turnkey.com/llms-full.txt)."]},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"turnkey-0e7c1f5b","hasAudioNarration":false,"actualSubdomain":"turnkey-0e7c1f5b","customDomains":["docs.turnkey.com"],"gitSource":{"type":"github","owner":"tkhq","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aea268fc4fda768c27b7e47","collectionId":"52b3f678-0e8b-401d-82ff-587806281a3f","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aea268fc4fda768c27b7e47"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aea268fc4fda768c27b7e47","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"API \u0026 SDK reference","count":450},{"language":"default","tag":"SDK reference","count":241},{"language":"default","tag":"REST API","count":209},{"language":"default","tag":"Documentation","count":126},{"language":"default","tag":"Activities","count":118},{"language":"default","tag":"Features","count":115},{"language":"default","tag":"Solutions","count":107},{"language":"default","tag":"React wallet kit","count":94},{"language":"default","tag":"Queries","count":75},{"language":"default","tag":"Embedded Wallets","count":70}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":".sms-price-lookup-container{position:relative;margin-top:1rem;margin-bottom:1rem}.sms-country-list,.sms-country-trigger{width:100%;background-color:#fff;border:1px solid #ced4da}.sms-country-trigger{display:block;font-size:1rem;font-family:inherit;line-height:1.5;color:#495057;background-clip:padding-box;border-radius:.25rem;text-align:left;cursor:pointer;padding:.5rem 2rem .5rem .75rem;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px}.sms-country-list{display:none;position:absolute;top:100%;left:0;max-height:200px;overflow-y:auto;border-top:none;border-radius:0 0 .25rem .25rem;z-index:1000;box-shadow:0 .5rem 1rem rgba(0,0,0,.15);margin:0;padding:0;list-style:none}.sms-country-item{display:block;width:100%;padding:.5rem .75rem;font-size:1rem;font-family:inherit;color:#495057;text-align:left;background-color:transparent;border:0;cursor:pointer;white-space:nowrap}.sms-country-item:focus,.sms-country-item:hover{background-color:#f8f9fa;color:#16181b;outline:0}#hidden-content-simple[data-open=false]{display:none}#hidden-content-simple[data-open=true]{display:block}@font-face{font-family:'ABC Favorit';src:url(/fonts/ABCFavorit-Regular.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:'ABC Favorit';src:url(/fonts/ABCFavorit-Bold.woff2) format('woff2'),url(/fonts/ABCFavorit-Bold.woff) format('woff');font-weight:700;font-style:normal;font-display:swap}a.nav-tabs-item[href=\"/welcome\"]>img{display:none!important}a.nav-tabs-item[href=\"/welcome\"]::before{content:\"\";display:block;width:1rem;height:1rem;flex-shrink:0;background-color:currentColor;mask-image:url(/images/icons/home-02.svg);mask-size:contain;mask-repeat:no-repeat;mask-position:center;-webkit-mask-image:url(/images/icons/home-02.svg);-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center}a.nav-tabs-item[data-active=true],a.nav-tabs-item[data-active=true].text-gray-800{color:#4c48ff!important;text-shadow:none!important}.dark a.nav-tabs-item[data-active=true],.dark a.nav-tabs-item[data-active=true].dark\\:text-gray-200{color:#5b68ff!important;text-shadow:none!important}a.nav-tabs-item[href=\"/welcome\"][data-active=true]::before{background-color:#4c48ff!important}.dark a.nav-tabs-item[href=\"/welcome\"][data-active=true]::before{background-color:#5b68ff!important}.scroll-mt-\\[var\\(--scroll-mt\\)\\]:has(.tk-page){max-width:none!important;width:100%!important;margin-inline:0!important;padding-inline:0!important}#content-container:has(.tk-page)>.flex.flex-row-reverse{flex-direction:row!important}#content-container:has(.tk-page) #content-area{width:100%!important;max-width:none!important;padding:0!important;margin:0!important}#content-container:has(.tk-page) #sidebar{display:none!important}#content-container:has(.tk-page) #content{max-width:none!important;padding:0!important}.tk-page{width:100%;max-width:92rem;margin-inline:auto;padding:0 3rem 5rem;box-sizing:border-box}@media (max-width:1000px){.tk-page{padding-inline:40px}}@media (max-width:868px){.tk-page{padding-inline:20px;padding-bottom:2.5rem}}.tk-img-light{display:block!important}.dark .tk-img-light,.tk-img-dark{display:none!important}.dark .tk-img-dark{display:block!important}.dark .tk-page{--tk-surface:#0B0B0F}.tk-placeholder{background:#f3f4f6;border:2px dashed #d1d5db;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:1.5rem;text-align:center;font-size:.75rem;color:#9ca3af;box-sizing:border-box}.dark .tk-placeholder{background:#1f2937;border-color:#374151;color:#6b7280}.section-divider{border:0;border-top:1px solid #e5e7eb;margin:0}.dark .section-divider{border-top-color:rgba(255,255,255,.06)}.tk-hero{position:relative;overflow:hidden;padding:2.5rem 0 3rem;min-height:360px;display:flex;align-items:stretch;justify-content:flex-start;gap:2.5rem}.tk-hero-content{flex:0 1 720px;max-width:62%;min-width:0;align-self:flex-start;position:relative;z-index:2}.tk-hero-headline{color:var(--Black, #111);font-family:'ABC Favorit',sans-serif;font-size:82px;font-style:normal;font-weight:400;line-height:95%;letter-spacing:-4.1px;font-synthesis:none;margin:0 0 1.25rem;max-width:720px}.dark .tk-hero-headline{color:#f9fafb}.tk-build-body,.tk-hero-body,.tk-whitepaper-text{color:#414146;font-family:Inter,sans-serif;font-style:normal;font-weight:400;line-height:28px}.tk-hero-body{font-size:18px;font-feature-settings:'ss01' on,'ss03' on;margin:0 0 1.5rem;max-width:720px}.dark .tk-build-body,.dark .tk-hero-body,.dark .tk-whitepaper-text{color:#a1a1aa}.tk-build-body,.tk-whitepaper-text{font-size:16px}.tk-search-bar{display:flex;align-items:center;gap:12px;border-radius:12px;border:1px solid var(--Black-20, rgba(0, 0, 0, 0.20));background:var(--Black-4, rgba(0, 0, 0, 0.04));padding:12px 16px;cursor:pointer;max-width:500px;transition:border-color .15s,background .15s}.tk-search-bar:hover{border-color:rgba(0,0,0,.28);background:rgba(0,0,0,.06)}.tk-search-icon{flex-shrink:0;color:#737277}.tk-search-placeholder{flex:1;color:#737277;text-align:left;font-family:Inter,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.dark .tk-search-icon,.dark .tk-search-placeholder{color:#a1a1aa}.dark .tk-search-bar{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.04)}.dark .tk-search-bar:hover{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.06)}.tk-search-kbd{color:#737277;text-align:center;font-family:\"SF Pro\",-apple-system,BlinkMacSystemFont,sans-serif;font-size:12px;font-style:normal;font-weight:590;line-height:16px;border:0;border-radius:0;padding:0;background:0 0}.dark .tk-search-kbd{color:#a1a1aa;background:0 0}.tk-hero-illustration{position:relative;flex:0 0 657px;width:657px;min-height:329px;display:flex;align-items:center;justify-content:flex-start;z-index:1;pointer-events:none;user-select:none}.tk-hero>.tk-hero-grid{flex:none}.tk-hero-illustration>*{pointer-events:none;cursor:default}.tk-hero-grid{position:absolute;top:0;right:0;width:640px;height:512px;z-index:0;pointer-events:none}.tk-hero-grid img{display:block;width:640px;height:512px}.tk-hero-img{position:relative;flex-shrink:0;pointer-events:none;border:0}.tk-hero-img,.tk-hero-img svg{display:block;width:657px;height:329px}@media (max-width:1440px) and (min-width:869px){.tk-hero{position:relative;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:1rem;width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);padding:2.3125rem 0 2.5rem 3rem;min-height:auto;overflow:hidden;box-sizing:border-box}.tk-hero-grid{top:-3.3125rem;right:0;left:auto;width:640px;height:512px}.tk-hero-grid img{width:640px;height:512px;max-height:none;object-fit:none}.tk-hero-content{display:flex;flex-direction:column;gap:24px;flex:0 0 612px;max-width:612px;width:612px;align-self:flex-start;position:relative;z-index:2;isolation:isolate}.tk-hero-content::before{content:\"\";position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;width:100%;pointer-events:none;background:linear-gradient(90deg,#fff 0,#fff 75%,rgba(255,255,255,0) 100%)}.dark .tk-hero-content::before{background:linear-gradient(90deg,var(--tk-surface, #0B0B0F) 0%,var(--tk-surface, #0B0B0F) 75%,rgba(11,11,15,0) 100%)}.tk-hero-headline{font-size:74px;letter-spacing:-3.7px;line-height:.95}.tk-hero-body,.tk-hero-headline{margin:0;max-width:none}.tk-search-bar{max-width:437px}.tk-hero-illustration{position:absolute;top:2.3125rem;right:0;display:block;flex:none;width:657px;min-width:657px;min-height:328px;margin:0;overflow:visible;z-index:1}.tk-hero-img{display:block;width:657px;max-width:none;height:auto}}@media (max-width:1190px) and (min-width:869px){.tk-hero-illustration{right:-100px}}@media (max-width:1000px) and (min-width:869px){.tk-hero{padding-left:40px}}@media (max-width:1000px){.tk-whitepaper{padding:20px 40px 0}}@media (max-width:868px){.tk-hero{flex-direction:column;gap:0;padding:2.25rem 0 2.5rem;min-height:auto;overflow:visible}.tk-hero-content::before,.tk-hero-grid,.tk-hero-illustration{display:none}.tk-hero-content{display:flex;flex-direction:column;gap:24px;flex:1 1 auto;max-width:100%;width:100%;isolation:auto}.tk-hero-headline{font-size:44px;letter-spacing:-2.2px;line-height:.95;margin:0}.tk-hero-body{margin:0}.tk-search-bar{max-width:none;width:100%}.tk-build,.tk-features-section,.tk-solutions-section,.tk-whitepaper-section{margin:2.5rem 0}}.tk-section-heading{font-family:Inter,sans-serif;font-size:30px;font-weight:700;letter-spacing:-.75px;line-height:1.2;margin:0 0 1.25rem;color:#1a191e}.dark .tk-build-heading,.dark .tk-section-heading{color:#f9fafb}.tk-build{display:grid;grid-template-columns:1fr;gap:28px;align-items:start;margin:52px 0}.tk-build-intro{display:contents}.tk-build-copy,.tk-build-visual{display:flex;flex-direction:column;gap:28px;grid-column:1;grid-row:1}.tk-build-visual{flex-direction:row;align-items:center;justify-content:flex-start;gap:40px;grid-row:2;width:100%;justify-self:start}.tk-build-links{grid-column:1;grid-row:3}.tk-build-selectors{flex:0 0 auto;min-width:0;justify-content:flex-start}@media (min-width:869px) and (max-width:1379px){.tk-build-visual{justify-content:center;justify-self:center;width:fit-content;max-width:100%;margin-inline:auto}}@media (min-width:1380px){.tk-build{display:grid;grid-template-columns:minmax(0,558px) auto;width:100%;gap:40px;align-items:center;justify-items:start}.tk-build-intro{display:flex;flex-direction:column;gap:28px;min-width:0;max-width:558px}.tk-build-copy{max-width:none}.tk-build-copy,.tk-build-links,.tk-build-visual{grid-column:unset;grid-row:unset}.tk-build-visual{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:40px;width:auto;min-width:0;justify-self:start}.tk-build-selectors{flex:0 0 auto;min-width:auto;max-width:none;justify-content:flex-start}.tk-selector-list{width:max-content;max-width:100%}}.tk-build-heading{font-family:Inter,sans-serif;font-size:30px;font-weight:700;letter-spacing:-.75px;line-height:normal;margin:0;color:#1a191e}.tk-build-body{margin:0}.tk-build-links{display:flex;flex-direction:row;gap:40px;flex-wrap:wrap}.tk-build-link{display:inline-flex;align-items:center;gap:7px;color:#4c48ff;font-weight:500;text-decoration:none;font-size:.875rem;transition:opacity .15s}.tk-build-link-icon{flex-shrink:0}.dark .tk-build-link,.dark .tk-build[data-selected=a] #tk-row-a .tk-selector-icon,.dark .tk-build[data-selected=a] #tk-row-a .tk-selector-label,.dark .tk-build[data-selected=b] #tk-row-b .tk-selector-icon,.dark .tk-build[data-selected=b] #tk-row-b .tk-selector-label,.dark .tk-build[data-selected=c] #tk-row-c .tk-selector-icon,.dark .tk-build[data-selected=c] #tk-row-c .tk-selector-label{color:#5b68ff}.tk-build-link:hover{opacity:.75}.tk-build-cube{width:149px;flex-shrink:0;margin:0;padding:0;align-self:center}.tk-cube-wrapper{position:relative;width:149px;height:170px;margin:0;padding:0;pointer-events:none;user-select:none}.tk-plane-img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain;opacity:0;visibility:hidden;transition:none;pointer-events:none;cursor:default}.tk-build[data-selected=a] .tk-plane-img[data-plane=a],.tk-build[data-selected=b] .tk-plane-img[data-plane=b],.tk-build[data-selected=c] .tk-plane-img[data-plane=c]{opacity:1;visibility:visible}.tk-build-selectors{display:flex;flex-direction:row;align-items:center;gap:17px;width:max-content;max-width:100%;flex-shrink:0;overflow:visible}.tk-build-connectors{position:relative;flex-shrink:0;width:40px;height:120px;margin-left:-24px;pointer-events:none}.tk-connector-line{position:absolute;left:0;width:40px;height:0}.tk-connector-line--a{top:20px}.tk-connector-line--b{top:60px}.tk-connector-line--c{top:100px}.tk-connector-line::after{content:\"\";position:absolute;left:0;right:0;top:0;height:1px;background:rgba(0,0,0,.2);transition:background .15s}.dark .tk-connector-line::after{background:rgba(255,255,255,.2)}.tk-build[data-selected=a] .tk-connector-line--a::after,.tk-build[data-selected=b] .tk-connector-line--b::after,.tk-build[data-selected=c] .tk-connector-line--c::after{background:#4c48ff}.dark .tk-build[data-selected=a] .tk-connector-line--a::after,.dark .tk-build[data-selected=b] .tk-connector-line--b::after,.dark .tk-build[data-selected=c] .tk-connector-line--c::after{background:#5b68ff}.tk-selector-list{position:relative;flex-shrink:0;display:grid;grid-template-columns:1fr;gap:0;width:max-content;max-width:100%}.tk-selector-row{position:relative;display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;height:40px;min-height:40px;padding:8px 36px 8px 12px;white-space:nowrap;text-decoration:none;color:inherit;border-radius:8px;border:0;transition:background .15s,color .15s}.tk-build[data-selected=a] #tk-row-a,.tk-build[data-selected=b] #tk-row-b,.tk-build[data-selected=c] #tk-row-c{background:rgba(76,72,255,.12)}.dark .tk-build[data-selected=a] #tk-row-a,.dark .tk-build[data-selected=b] #tk-row-b,.dark .tk-build[data-selected=c] #tk-row-c{background:rgba(91,104,255,.12)}.tk-selector-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#28282c;opacity:.5;background:0 0;border-radius:0;transition:color .15s,opacity .15s}.tk-selector-icon,.tk-selector-icon svg{width:24px;height:24px}.tk-selector-chevron svg path,.tk-selector-icon svg g path,.tk-selector-icon svg path{stroke-width:1.5}.dark .tk-selector-icon{color:#d1d5db}.tk-selector-desc,.tk-selector-label{font-family:Inter,sans-serif;font-size:14px}.tk-selector-label{font-weight:600;line-height:normal;color:#28282c;flex-shrink:0;transition:color .15s}.dark .tk-selector-label{color:#f3f4f6}.tk-build[data-selected=a] #tk-row-a .tk-selector-label,.tk-build[data-selected=b] #tk-row-b .tk-selector-label,.tk-build[data-selected=c] #tk-row-c .tk-selector-label{color:#4c48ff}.tk-build[data-selected=a] #tk-row-a .tk-selector-icon,.tk-build[data-selected=b] #tk-row-b .tk-selector-icon,.tk-build[data-selected=c] #tk-row-c .tk-selector-icon{opacity:1;color:#4c48ff}.tk-selector-desc{font-weight:400;line-height:1.48;color:#505454;flex-shrink:1;min-width:0}.dark .tk-selector-desc{color:#9ca3af}.tk-selector-chevron{position:absolute;right:8px;top:50%;display:flex;align-items:center;justify-content:center;transform:translateY(-50%);opacity:0;color:#4c48ff;pointer-events:none;transition:opacity .2s ease}.dark .tk-selector-chevron{color:#5b68ff}.tk-selector-chevron,.tk-selector-chevron svg{width:20px;height:20px}.tk-build[data-selected=a] #tk-row-a .tk-selector-chevron,.tk-build[data-selected=b] #tk-row-b .tk-selector-chevron,.tk-build[data-selected=c] #tk-row-c .tk-selector-chevron,.tk-selector-row:hover .tk-selector-chevron{opacity:1}@media (max-width:868px){.tk-build{grid-template-columns:1fr;align-items:start;gap:28px}.tk-build-intro{display:contents}.tk-build-copy,.tk-build-links{grid-column:1/-1;grid-row:1}.tk-build-links{grid-row:2;gap:40px}.tk-build-visual{grid-column:1/-1;grid-row:3;flex-direction:column;gap:16px;width:100%;align-items:center;padding:0}.tk-build-cube{width:100%;max-width:149px;margin:0 auto}.tk-cube-wrapper{width:149px;height:170px;margin:0 auto}.tk-build[data-selected=c]:not([data-user-picked]) .tk-plane-img[data-plane=c]{opacity:0;visibility:hidden}.tk-build[data-selected=c]:not([data-user-picked]) .tk-plane-img[data-plane=a]{opacity:1;visibility:visible}.tk-build-selectors{width:100%;max-width:100%;justify-content:stretch}.tk-build-connectors{display:none}.tk-selector-list{width:100%;max-width:100%;gap:0}.tk-selector-row{display:grid;grid-template-columns:24px minmax(0,1fr) 20px;grid-template-rows:auto auto;column-gap:12px;row-gap:0;align-items:center;width:100%;max-width:100%;height:auto;min-height:54px;padding:8px;white-space:normal;background:0 0!important;border-radius:0}.tk-selector-row+.tk-selector-row{border-top:1px solid rgba(0,0,0,.12);margin-top:4px}.dark .tk-selector-row+.tk-selector-row{border-top-color:rgba(255,255,255,.06)}.tk-selector-icon{grid-column:1;grid-row:1/3;align-self:center;opacity:1;color:#4c48ff}.dark .tk-selector-icon,.dark .tk-selector-label{color:#5b68ff}.tk-selector-label{grid-column:2;grid-row:1;font-weight:500;color:#4c48ff}.tk-selector-desc{grid-column:2;grid-row:2;white-space:normal;overflow:visible;text-overflow:unset}.tk-selector-chevron{grid-column:3;grid-row:1/3;position:static;transform:none;opacity:1}}.tk-solutions-section{display:flex;flex-direction:column;gap:28px;margin:52px 0}.tk-solutions-section .tk-solution-card{display:grid!important}.tk-solutions-section .tk-section-heading{margin:0}.tk-solutions-grid{display:grid;grid-template-columns:repeat(3,1fr);column-gap:24px;row-gap:20px;width:100%}.tk-solution-card{grid-row:span 3;display:grid;grid-template-rows:subgrid;box-sizing:border-box;padding:20px 32px 36px;background:rgba(0,0,0,.02);border:1px solid rgba(13,12,17,.1);border-radius:16px}.tk-solution-copy{display:flex;flex-direction:column;gap:8px;min-width:0}.dark .tk-solution-card{background:rgba(255,255,255,.02);border-color:rgba(255,255,255,.12)}.tk-solution-thumbnail{width:120px;height:120px;flex-shrink:0}.tk-solution-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}.tk-solution-card>.tk-solution-title-row,.tk-solution-copy .tk-solution-title{min-width:0}.tk-solution-title-row{display:inline-flex;align-items:center;gap:12px;flex-wrap:nowrap;width:fit-content;max-width:100%}.tk-solution-title-row .tk-solution-title{width:auto;max-width:none}.tk-solution-title-long{display:inline}.tk-solution-title-short{display:none}.tk-solution-title{font-family:Inter,sans-serif;font-size:24px;font-weight:600;letter-spacing:-.6px;line-height:32px;margin:0;color:#111827;text-decoration:none}.dark .tk-solution-title{color:#f9fafb}.tk-solution-desc{margin:0;font-family:Inter,sans-serif;font-size:14px;font-weight:400;line-height:1.48;color:#414146;min-width:0}.dark .tk-solution-desc{color:#a1a1aa}.tk-solution-links{display:flex;flex-direction:column;gap:16px;align-items:flex-start;min-width:0;border-top:1px solid rgba(0,0,0,.12);padding-top:20px}.dark .tk-solution-links{border-top-color:rgba(255,255,255,.06)}.tk-solution-link{text-decoration:none;font-family:Inter,sans-serif;font-size:14px;font-weight:500;color:#4c48ff;transition:opacity .15s}.tk-solution-link:hover{opacity:.75;color:#4c48ff}.dark .tk-solution-link{color:#5b68ff}.dark .tk-solution-link:hover{opacity:.75}@media (max-width:768px){.tk-solutions-grid{grid-template-columns:1fr}}.tk-features-section{display:flex;flex-direction:column;gap:28px;margin:52px 0}.tk-features-section .tk-section-heading{margin:0}.tk-features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;width:100%}.tk-feature-column{display:flex;flex-direction:column;gap:12px;min-width:0}.tk-feature-column-heading{font-family:Inter,sans-serif;font-size:18px;font-weight:600;line-height:32px;color:#111827;margin:0}.dark .tk-feature-column-heading{color:#f9fafb}.tk-feature-items{display:flex;flex-direction:column;gap:8px;width:100%}.tk-feature-divider{border:0;height:1px;margin:0;background:rgba(0,0,0,.12)}.dark .tk-feature-divider{background:rgba(255,255,255,.06)}.tk-feature-row{display:flex;align-items:center;gap:12px;padding:4px 0;text-decoration:none;color:#000;font-family:Inter,sans-serif;font-size:16px;font-weight:500;line-height:normal;transition:color .12s ease}.dark .tk-feature-row{color:#f3f4f6}.tk-feature-row:focus-visible,.tk-feature-row:hover{color:#4c48ff}.dark .tk-feature-row:focus-visible,.dark .tk-feature-row:hover{color:#5b68ff}.tk-feature-icon-circle{display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:6px;border-radius:9999px;background:rgba(0,0,0,.04);border:1px solid rgba(0,0,0,.12);color:#000;transition:background .12s ease,border-color .12s ease,color .12s ease}.dark .tk-feature-icon-circle{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.12);color:#f3f4f6}.tk-feature-row:focus-visible .tk-feature-icon-circle,.tk-feature-row:hover .tk-feature-icon-circle{background:#f1f3ff;border-color:#c9ceff;color:#4c48ff}.dark .tk-feature-row:focus-visible .tk-feature-icon-circle,.dark .tk-feature-row:hover .tk-feature-icon-circle{background:rgba(91,104,255,.15);border-color:rgba(91,104,255,.35);color:#5b68ff}.tk-feature-icon-circle .tk-feature-icon-img,.tk-feature-icon-circle svg{width:20px;height:20px;display:block;flex-shrink:0;opacity:.5;transition:opacity .12s ease}.tk-feature-row:focus-visible .tk-feature-icon-circle .tk-feature-icon-img,.tk-feature-row:focus-visible .tk-feature-icon-circle svg,.tk-feature-row:hover .tk-feature-icon-circle .tk-feature-icon-img,.tk-feature-row:hover .tk-feature-icon-circle svg{opacity:1}.tk-feature-icon-img,.tk-feature-row::after{background-color:currentColor;mask-repeat:no-repeat;mask-position:center;mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:contain}.tk-feature-icon-img--wallet-embedded{mask-image:url(/images/icons/wallet-embedded.svg);-webkit-mask-image:url(/images/icons/wallet-embedded.svg)}.tk-feature-icon-img--fuel{mask-image:url(/images/icons/fuel.svg);-webkit-mask-image:url(/images/icons/fuel.svg)}.tk-feature-icon-circle svg circle,.tk-feature-icon-circle svg g path,.tk-feature-icon-circle svg line,.tk-feature-icon-circle svg path,.tk-feature-icon-circle svg rect,.tk-whitepaper-link-icon svg path{stroke-width:1.5px;vector-effect:non-scaling-stroke}.tk-feature-label{flex:1;min-width:0}.tk-feature-row::after{content:'';width:20px;height:20px;flex-shrink:0;opacity:0;transition:opacity .12s ease;background-color:#4c48ff;mask-image:url(/images/icons/chevron-right.svg);-webkit-mask-image:url(/images/icons/chevron-right.svg)}.dark .tk-feature-row::after{background-color:#5b68ff}.tk-feature-row:focus-visible::after,.tk-feature-row:hover::after{opacity:1}@media (max-width:868px){.tk-features-grid{grid-template-columns:1fr;gap:40px}.tk-feature-row--chevron::after{opacity:1}}.tk-whitepaper-section{margin:52px 0}.tk-whitepaper{position:relative;display:flex;align-items:flex-start;justify-content:center;padding:20px 48px 0;background:rgba(0,0,0,.02);border:1px solid rgba(13,12,17,.1);border-radius:16px;overflow:hidden}.dark .tk-whitepaper{background:rgba(255,255,255,.02);border-color:rgba(255,255,255,.1)}.tk-whitepaper-inner{display:flex;gap:40px;align-items:flex-start;width:auto;max-width:100%;box-sizing:border-box;padding:0;min-height:132px}.tk-whitepaper-thumb-wrap{position:relative;flex-shrink:0;align-self:flex-end;width:121px;height:132px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.1)}.tk-whitepaper-thumb{position:absolute;top:0;left:-46.26%;height:100%;width:192.52%;max-width:none;display:block;pointer-events:none}.tk-whitepaper-content{display:flex;flex-direction:column;gap:12px;align-items:flex-start;align-self:flex-start;padding-top:12px;padding-bottom:0;min-width:0;max-width:476px}.tk-whitepaper-text{margin:0;max-width:476px}.tk-whitepaper-link{display:inline-flex;align-items:center;gap:8px;color:#4c48ff;font-family:Inter,sans-serif;font-size:14px;font-weight:500;line-height:normal;text-decoration:none;transition:opacity .15s;white-space:nowrap}.tk-whitepaper-link-icon{display:flex;flex-shrink:0;width:20px;height:20px;color:#4c48ff}.tk-whitepaper-link-icon svg{width:20px;height:20px;display:block}.dark .tk-whitepaper-link,.dark .tk-whitepaper-link-icon{color:#5b68ff}.tk-whitepaper-link:hover{opacity:.75}@media (max-width:868px){.tk-whitepaper{justify-content:flex-start;padding:0}.tk-whitepaper-thumb-wrap{position:absolute;left:24px;bottom:0}.tk-whitepaper-inner{flex-direction:column;align-items:flex-start;gap:0;width:100%;padding:20px 24px 132px}.tk-whitepaper-content{padding-top:12px;padding-bottom:0;margin-bottom:24px;align-items:flex-start;align-self:stretch;text-align:left;width:100%}.tk-whitepaper-text{max-width:none}}.tk-badge{font-family:Inter,sans-serif;font-size:10px;font-weight:500;line-height:normal;background:#ede9fe;color:#4c48ff;border-radius:4px;padding:2px 6px;flex-shrink:0}.dark .tk-badge{background:rgba(91,104,255,.2);color:#5b68ff}.tk-card-icon-wrap{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;border-radius:9999px;border:1px solid rgba(0,0,0,.16);background:#fff;box-sizing:border-box}.dark .tk-card-icon-wrap{background:0 0;border-color:rgba(255,255,255,.16)}.tk-card-icon{display:block;flex-shrink:0;width:24px;height:25px;background-color:#505454;mask-size:contain;mask-repeat:no-repeat;mask-position:center;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center}.dark .tk-card-icon{background-color:#fff}.tk-card-row{display:flex;align-items:flex-start;gap:16px}.tk-network-cards .tk-card-row{align-items:center}.tk-card-network-logo{display:block;width:24px;height:24px;object-fit:contain}.dark .tk-network-cards .tk-card-network-logo[src$=\"aptos.svg\"],.dark .tk-network-cards .tk-card-network-logo[src$=\"cosmos.svg\"],.dark .tk-network-cards .tk-card-network-logo[src$=\"iota.svg\"],.dark .tk-network-cards .tk-card-network-logo[src$=\"tempo.svg\"]{filter:brightness(0) invert(1)}.tk-card-icon-img{display:block;flex-shrink:0;width:44px;height:44px}#content [data-table-wrapper=true]{width:100%!important;max-width:100%!important;margin-inline:0!important;contain:none!important}.policy-language :is(h3, h4) a[aria-label=\"Navigate to header\"]{opacity:1}.policy-language a[id]{scroll-margin-top:var(--scroll-mt)}.policy-language [data-table-wrapper=true] :is(th, td, th *, td *){overflow-wrap:anywhere}.policy-language [data-table-wrapper=true] td{min-width:5rem}@media (min-width:768px){.policy-language [data-table-wrapper=true] td:not(:last-child){min-width:max(8.5rem,25cqi)}.policy-language [data-table-wrapper=true] table:has(th:nth-child(5)) td:not(:last-child){min-width:max(6.5rem,18cqi)}}#content .policy-language [data-table-wrapper=true]{width:calc(100% + (var(--page-padding)*2))!important;max-width:none!important;margin-inline:calc(var(--page-padding)*-1)!important}@media (min-width:1280px){#content-area:has(.policy-language){width:calc(100% - 15rem)!important;padding-left:2rem!important;margin-left:0!important}#content-container:has(.policy-language) #table-of-contents-layout{width:14rem!important;padding-left:1.5rem!important}#content-container:has(.policy-language) #table-of-contents{width:auto!important}}"}],"page":{"pagePath":"features/networks/solana-rent-refunds","slug":"/features/networks/solana-rent-refunds","pageMetadata":{"title":"Solana rent sponsorship","description":"Understand how Solana rent sponsorship works, when rent is pre-funded, and how to reduce rent-refund leakage in sponsored flows.","sidebarTitle":"Rent sponsorship","href":"/features/networks/solana-rent-refunds"},"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: \"Understand how Solana rent sponsorship works, when rent is pre-funded, and how to reduce rent-refund leakage in sponsored flows.\"\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={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,OptimizedImage,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`On Solana, fee sponsorship and rent sponsorship are separate concepts.`}),`\n`,_jsxs(_components.p,{children:[`Fee sponsorship covers the network fee for a transaction. Rent sponsorship covers the rent-exempt lamports needed when instructions create new accounts. Rent sponsorship is available on Enterprise plans. It is disabled by default and must be enabled separately in the Turnkey dashboard. If you’re on a Pay-as-you-go or Pro plan, please `,_jsx(_components.a,{href:`https://www.turnkey.com/contact-us`,children:`reach out`}),`.`]}),`\n`,_jsx(_components.p,{children:`When rent is enabled:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`If an instruction creates a new account and the user signer is the payer, Turnkey pre-funds that signer for the rent-exempt amount. The amount is based on the size of the new account data and is intended to make the account rent exempt.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Sponsored rent is added to your monthly gas bill and counts toward the same spend limits used for sponsored transaction fees. See `,_jsx(_components.a,{href:`/features/transaction-management#spend-limits`,children:`Spend limits`}),`.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`For the broader transaction-construction model behind sponsored Solana flows, including payer behavior and account-creation caveats, see `,_jsx(_components.a,{href:`/features/networks/solana-transaction-construction`,children:`Solana transaction construction for sponsored flows`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`enable-rent-sponsorship`,children:`Enable rent sponsorship`}),`\n`,_jsx(_components.p,{children:`If your product sponsors transactions that create accounts and you want rent covered for your users, you must enable rent sponsorship in the Turnkey dashboard. Here is how you can do this:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Enable gas sponsorship.`}),`\n`,_jsxs(_components.li,{children:[`Turn on `,_jsx(_components.code,{children:`Sponsor Solana Rent`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.code,{children:`Save Configuration`}),`.`]}),`\n`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/turnkey-0e7c1f5b/gHm5qe1kI7VHGbG8/images/concepts/network/enable_rent_sponsorship.png?fit=max\u0026auto=format\u0026n=gHm5qe1kI7VHGbG8\u0026q=85\u0026s=ac5dc618c83f369f4e480ea53c12b16b`,alt:`Turnkey dashboard showing Sponsor Solana Rent enabled`,\"data-og-width\":`1484`,width:`1484`,\"data-og-height\":`1234`,height:`1234`,\"data-path\":`images/concepts/network/enable_rent_sponsorship.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/turnkey-0e7c1f5b/gHm5qe1kI7VHGbG8/images/concepts/network/enable_rent_sponsorship.png?w=280\u0026fit=max\u0026auto=format\u0026n=gHm5qe1kI7VHGbG8\u0026q=85\u0026s=a2c66e982736087ed7ca7ab3c2053c44 280w, https://mintcdn.com/turnkey-0e7c1f5b/gHm5qe1kI7VHGbG8/images/concepts/network/enable_rent_sponsorship.png?w=560\u0026fit=max\u0026auto=format\u0026n=gHm5qe1kI7VHGbG8\u0026q=85\u0026s=5ab2e6a86568bb8dfb3a033fd51cf25d 560w, https://mintcdn.com/turnkey-0e7c1f5b/gHm5qe1kI7VHGbG8/images/concepts/network/enable_rent_sponsorship.png?w=840\u0026fit=max\u0026auto=format\u0026n=gHm5qe1kI7VHGbG8\u0026q=85\u0026s=ef8a7cdf0f3d1b0382ff921aad90b389 840w, https://mintcdn.com/turnkey-0e7c1f5b/gHm5qe1kI7VHGbG8/images/concepts/network/enable_rent_sponsorship.png?w=1100\u0026fit=max\u0026auto=format\u0026n=gHm5qe1kI7VHGbG8\u0026q=85\u0026s=1b2a075908d3ee623345e52e910d81d0 1100w, https://mintcdn.com/turnkey-0e7c1f5b/gHm5qe1kI7VHGbG8/images/concepts/network/enable_rent_sponsorship.png?w=1650\u0026fit=max\u0026auto=format\u0026n=gHm5qe1kI7VHGbG8\u0026q=85\u0026s=c6b0a1173612b2789cce3812de6eb5d9 1650w, https://mintcdn.com/turnkey-0e7c1f5b/gHm5qe1kI7VHGbG8/images/concepts/network/enable_rent_sponsorship.png?w=2500\u0026fit=max\u0026auto=format\u0026n=gHm5qe1kI7VHGbG8\u0026q=85\u0026s=6d702bb873c0f69ca989dbad8dc8d32e 2500w`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Refunded rent from later-closed accounts follows Solana account rules. It\ndoes not automatically return to the sponsor.`})}),`\n`,_jsx(Heading,{level:`2`,id:`rent-extraction-risk`,children:`Rent extraction risk`}),`\n`,_jsx(_components.p,{children:`Solana accounts can be closed after they’re created, and when that happens, the rent previously deposited into the account is returned according to Solana account rules, usually to the configured destination for the close operation.`}),`\n`,_jsx(_components.p,{children:`That destination is usually the signer or account owner, not the sponsor that originally funded the rent.`}),`\n`,_jsx(_components.p,{children:`This creates a rent extraction risk for sponsored Solana transactions: the sponsor covers the rent needed to create the account, but the refunded rent can later flow back to the signer instead.`}),`\n`,_jsx(_components.p,{children:`This means that when your organization pays for rent upfront, and those accounts are later closed, the refunded lamports may go to the signer, not back to you.`}),`\n`,_jsx(_components.p,{children:`This can be exploited maliciously, but it also happens naturally in ordinary product flows.`}),`\n`,_jsx(_components.p,{children:`A common example is a swap that temporarily wraps SOL into wSOL, uses that account during execution, and then closes the temporary account before the transaction completes.`}),`\n`,_jsx(_components.p,{children:`In a self-funded flow, the rent simply returns to the user. In a sponsored flow, that same rent may have been pre-funded by the sponsor and then refunded back to the signer.`}),`\n`,_jsx(Heading,{level:`2`,id:`mitigations-and-guardrails`,children:`Mitigations and guardrails`}),`\n`,_jsx(_components.p,{children:`How you mitigate depends on how much transaction flexibility your product allows, but there are several approaches:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Reuse a constrained set of token accounts where possible instead of creating and closing them repeatedly.`}),`\n`,_jsxs(_components.li,{children:[`Avoid or strip `,_jsx(_components.code,{children:`CloseAccount`}),` patterns from sponsored flows when that works for your product.`]}),`\n`,_jsx(_components.li,{children:`Prefer backend-generated or backend-validated transactions for higher-control flows.`}),`\n`,_jsx(_components.li,{children:`Use spend caps, rate limits, monitoring, and alerts to bound and detect repeated leakage.`}),`\n`,_jsx(_components.li,{children:`Apply policies that constrain account creation and closure in sponsored Solana transactions.`}),`\n`,_jsx(_components.li,{children:`Treat account creation and account closure as first-class review criteria for sponsored Solana transactions.`}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`strip-closeaccount-instructions-before-submission`,children:[`Strip `,_jsx(_components.code,{children:`CloseAccount`}),` instructions before submission`]}),`\n`,_jsxs(_components.p,{children:[`One practical guardrail is to inspect the transaction payload before submission and remove SPL Token `,_jsx(_components.code,{children:`CloseAccount`}),` instructions.`]}),`\n`,_jsx(_components.p,{children:`This is especially useful when you receive a prebuilt transaction from a routing service such as Jupiter and want to keep your sponsored flow from immediately refunding rent back to the signer.`}),`\n`,_jsxs(_components.p,{children:[`In the SPL Token program, `,_jsx(_components.code,{children:`CloseAccount`}),` is instruction discriminator `,_jsx(_components.code,{children:`9`}),`. A simple filter can remove those instructions before you hand the transaction to Turnkey:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` SPL_TOKEN_PROGRAM_IDS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`([`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]);`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` CLOSE_ACCOUNT_INSTRUCTION_DISCRIMINATOR`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 9`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` isCloseAccountInstruction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`ix`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` TransactionInstruction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` boolean`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` SPL_TOKEN_PROGRAM_IDS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`has`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ix`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`programId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toBase58`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026\u0026`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ix`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`===`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` CLOSE_ACCOUNT_INSTRUCTION_DISCRIMINATOR`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` filteredInstructions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` txMessage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`instructions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`filter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`ix`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isCloseAccountInstruction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ix`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This does not eliminate all rent-related risk, but it removes one of the most common leakage paths in sponsored swap flows.`}),`\n`,_jsx(Heading,{level:`3`,id:`disable-jupiter-auto-wrap-and-unwrap-for-sol-flows`,children:`Disable Jupiter auto wrap and unwrap for SOL flows`}),`\n`,_jsx(_components.p,{children:`Another useful guardrail is to disable Jupiter’s automatic SOL wrapping and unwrapping behavior when you request the swap transaction.`}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`wrapAndUnwrapSol`}),` is enabled, Jupiter may create a temporary wSOL account for the transaction and then close it before completion. In a sponsored flow, that pattern can create a rent refund path back to the signer.`]}),`\n`,_jsxs(_components.p,{children:[`To prevent that, set `,_jsx(_components.code,{children:`wrapAndUnwrapSol`}),` to `,_jsx(_components.code,{children:`false`}),` in the Jupiter API request:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` quoteResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` userPublicKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`signWith`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` wrapAndUnwrapSol:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` dynamicComputeUnitLimit:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` prioritizationFeeLamports:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"auto\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`With this setting disabled, your application should manage wSOL explicitly instead of relying on Jupiter to create and close a temporary account on the user’s behalf.`}),`\n`,_jsx(_components.p,{children:`This higher-control approach is often a better fit for sponsored flows because it lets you:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`reuse a persistent wSOL account instead of creating a fresh one per swap`}),`\n`,_jsx(_components.li,{children:`avoid automatic close-account behavior in the routed transaction`}),`\n`,_jsx(_components.li,{children:`review account lifecycle decisions on the backend before submission`}),`\n`]}),`\n`,_jsx(_components.p,{children:`For products with tighter controls, the strongest approach is usually to combine both mitigations: disable auto wrap and unwrap where possible, and still validate or sanitize the final instruction payload before sending it.`}),`\n`,_jsx(Heading,{level:`2`,id:`key-custody-matters`,children:`Key custody matters`}),`\n`,_jsx(_components.p,{children:`If end users can export or independently control the signer key, these mitigations are less effective. A user who controls the signer can submit their own transaction to close previously created accounts and reclaim rent, bypassing any filtering your application applies.`}),`\n`,_jsx(_components.p,{children:`In these architectures, server-side mitigations like instruction filtering are no longer sufficient on their own. Spend caps, rate limits, monitoring, and policies become your primary line of defense.`}),`\n`,_jsx(Heading,{level:`2`,id:`policy-guidance`,children:`Policy guidance`}),`\n`,_jsx(_components.p,{children:`These example deny policies can help reduce common Solana rent-leakage patterns in sponsored flows.`}),`\n`,_jsxs(Heading,{level:`3`,id:`deny-sponsored-solana-closeaccount`,children:[`Deny sponsored Solana `,_jsx(_components.code,{children:`CloseAccount`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effect\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EFFECT_DENY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"condition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"solana.tx.instructions.any(i, (i.program_key == 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA' || i.program_key == 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb') \u0026\u0026 i.instruction_data_hex == '09')\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`deny-sponsored-solana-account-lifecycle-ops`,children:`Deny sponsored Solana account lifecycle ops`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"effect\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EFFECT_DENY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"condition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"solana.tx.instructions.any(i, i.program_key == 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL') || solana.tx.instructions.any(i, (i.program_key == 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA' || i.program_key == 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb') \u0026\u0026 (i.instruction_data_hex == '09' || i.instruction_data_hex == '11'))\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`See `,_jsx(_components.a,{href:`/features/networks/solana`,children:`Solana (SVM) support on Turnkey`})]}),`\n`,_jsxs(_components.li,{children:[`See `,_jsx(_components.a,{href:`/features/networks/solana-transaction-construction`,children:`Solana transaction construction for sponsored flows`})]}),`\n`,_jsxs(_components.li,{children:[`See `,_jsx(_components.a,{href:`/features/transaction-management/sending-sponsored-solana-transactions`,children:`Sending Sponsored Solana Transactions`})]}),`\n`,_jsxs(_components.li,{children:[`See `,_jsx(_components.a,{href:`/features/policies/examples/solana`,children:`Solana policy examples`})]}),`\n`]})]})}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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Solana rent sponsorship","description":"Understand how Solana rent sponsorship works, when rent is pre-funded, and how to reduce rent-refund leakage in sponsored flows.","sidebarTitle":"Rent sponsorship","href":"/features/networks/solana-rent-refunds"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Enable rent sponsorship","slug":"enable-rent-sponsorship","depth":2,"children":[]},{"title":"Rent extraction risk","slug":"rent-extraction-risk","depth":2,"children":[]},{"title":"Mitigations and guardrails","slug":"mitigations-and-guardrails","depth":2,"children":[{"title":"Strip CloseAccount instructions before submission","slug":"strip-closeaccount-instructions-before-submission","depth":3,"children":[]},{"title":"Disable Jupiter auto wrap and unwrap for SOL flows","slug":"disable-jupiter-auto-wrap-and-unwrap-for-sol-flows","depth":3,"children":[]}]},{"title":"Key custody matters","slug":"key-custody-matters","depth":2,"children":[]},{"title":"Policy guidance","slug":"policy-guidance","depth":2,"children":[{"title":"Deny sponsored Solana CloseAccount","slug":"deny-sponsored-solana-closeaccount","depth":3,"children":[]},{"title":"Deny sponsored Solana account lifecycle ops","slug":"deny-sponsored-solana-account-lifecycle-ops","depth":3,"children":[]}]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/turnkey-0e7c1f5b/788886ec77a9d964/ga.js","/_mintlify/custom/turnkey-0e7c1f5b/c849d0b15d4f5866/hero-animation.js"],"subdomain":"turnkey-0e7c1f5b","siteName":"Turnkey","title":"Solana rent sponsorship - Turnkey","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-29T17:05:10.173Z","originalFileLocation":"features/networks/solana-rent-refunds.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=\"Understand how Solana rent sponsorship works, when rent is pre-funded, and how to reduce rent-refund leakage in sponsored flows.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Turnkey\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/turnkey-0e7c1f5b/umYhjB0nyuI1BMHQ/_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/turnkey-0e7c1f5b/umYhjB0nyuI1BMHQ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/turnkey-0e7c1f5b/umYhjB0nyuI1BMHQ/_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/turnkey-0e7c1f5b/umYhjB0nyuI1BMHQ/_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/turnkey-0e7c1f5b/umYhjB0nyuI1BMHQ/_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/turnkey-0e7c1f5b/umYhjB0nyuI1BMHQ/_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/turnkey-0e7c1f5b/umYhjB0nyuI1BMHQ/_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/turnkey-0e7c1f5b/umYhjB0nyuI1BMHQ/_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/turnkey-0e7c1f5b/umYhjB0nyuI1BMHQ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Solana rent sponsorship - Turnkey\">\u003cmeta data-mint-head property=\"og:description\" content=\"Understand how Solana rent sponsorship works, when rent is pre-funded, and how to reduce rent-refund leakage in sponsored flows.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Turnkey\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.turnkey.com/features/networks/solana-rent-refunds\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.turnkey.com/images/og-image.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=\"Solana rent sponsorship - Turnkey\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Understand how Solana rent sponsorship works, when rent is pre-funded, and how to reduce rent-refund leakage in sponsored flows.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.turnkey.com/images/og-image.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/turnkey-0e7c1f5b/umYhjB0nyuI1BMHQ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Turnkey\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4C48FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.turnkey.com/features/networks/solana-rent-refunds\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/features/networks/solana-rent-refunds.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.turnkey.com/#organization\",\"name\":\"Turnkey\",\"url\":\"https://docs.turnkey.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/turnkey-0e7c1f5b/YQKQ_azrjtJ471Qy/logo/light.svg?fit=max\u0026auto=format\u0026n=YQKQ_azrjtJ471Qy\u0026q=85\u0026s=38556c8732a1d68a5399fce905b480b1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.turnkey.com#website\",\"name\":\"Turnkey\",\"url\":\"https://docs.turnkey.com\",\"publisher\":{\"@id\":\"https://docs.turnkey.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.turnkey.com/features/networks/solana-rent-refunds#webpage\",\"url\":\"https://docs.turnkey.com/features/networks/solana-rent-refunds\",\"name\":\"Solana rent sponsorship\",\"description\":\"Understand how Solana rent sponsorship works, when rent is pre-funded, and how to reduce rent-refund leakage in sponsored flows.\",\"dateModified\":\"2026-10-29T17:05:10.173Z\",\"isPartOf\":{\"@id\":\"https://docs.turnkey.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.turnkey.com/features/networks/solana-rent-refunds#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.turnkey.com/features/networks/solana-rent-refunds#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Features\",\"item\":\"https://docs.turnkey.com/features/organizations\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Chain support\",\"item\":\"https://docs.turnkey.com/features/networks/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Supported networks\",\"item\":\"https://docs.turnkey.com/features/networks/ethereum\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Solana (SVM)\",\"item\":\"https://docs.turnkey.com/features/networks/solana\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Solana rent sponsorship\",\"item\":\"https://docs.turnkey.com/features/networks/solana-rent-refunds\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.turnkey.com/features/networks/solana-rent-refunds#article\",\"headline\":\"Solana rent sponsorship\",\"name\":\"Solana rent sponsorship\",\"description\":\"Understand how Solana rent sponsorship works, when rent is pre-funded, and how to reduce rent-refund leakage in sponsored flows.\",\"url\":\"https://docs.turnkey.com/features/networks/solana-rent-refunds\",\"mainEntityOfPage\":{\"@id\":\"https://docs.turnkey.com/features/networks/solana-rent-refunds#webpage\"},\"image\":\"https://docs.turnkey.com/images/og-image.png\",\"dateModified\":\"2026-10-29T17:05:10.173Z\",\"publisher\":{\"@id\":\"https://docs.turnkey.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.turnkey.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Turnkey\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Turnkey","nav":{"global":{},"tabs":[{"tab":"Home","icon":"https://mintlify.s3.us-west-1.amazonaws.com/turnkey-0e7c1f5b/images/icons/home-02.svg","pages":[{"title":"Home","href":"/welcome"}]},{"tab":"Solutions","pages":[{"title":"Solutions","href":"/solutions/overview"}]},{"tab":"Documentation","groups":[{"group":"Get started","pages":[{"title":"About Turnkey","sidebarTitle":"About Turnkey","href":"/get-started/about-turnkey"},{"title":"Account setup","sidebarTitle":"Account setup","href":"/get-started/quickstart"},{"group":"Using LLMs","pages":[{"title":"Turnkey MCP server and AI resources","sidebarTitle":"Using AI to integrate to Turnkey","href":"/get-started/using-llms"},{"title":"Agent Skills","href":"/get-started/ai-skills"}]},{"title":"Code examples","href":"/get-started/examples"},{"group":"Going live","pages":[{"title":"Production checklist","href":"/get-started/production-checklist"},{"title":"Backup and recovery","href":"/get-started/backup-recovery"}]}]},{"group":"Features","pages":[{"group":"Organizations","pages":[{"title":"Organizations","sidebarTitle":"Overview","href":"/features/organizations"},{"title":"Sub-organizations","href":"/features/sub-organizations"}]},{"group":"Users","pages":[{"title":"Users","mode":"wide","sidebarTitle":"Overview","href":"/features/users/introduction"},{"title":"Credentials","sidebarTitle":"Credentials","href":"/features/users/credentials"},{"title":"Root quorum","href":"/features/users/root-quorum"},{"title":"Best practices","href":"/features/users/best-practices"}]},{"group":"Authentication","pages":[{"title":"Turnkey authentication","sidebarTitle":"Overview","href":"/features/authentication/overview"},{"group":"Auth methods","pages":[{"group":"Email auth \u0026 recovery","pages":[{"title":"Overview","href":"/features/authentication/email"},{"title":"Email delivery events","href":"/features/authentication/email-delivery-events"}]},{"title":"Social logins","href":"/features/authentication/social-logins"},{"title":"SMS authentication","sidebarTitle":"SMS","href":"/features/authentication/sms"},{"title":"Migrate to encrypted OTP flows","sidebarTitle":"OTP migration guide","href":"/features/authentication/otp-migration-guide"},{"group":"Passkeys","pages":[{"title":"Introduction to Passkeys","href":"/features/authentication/passkeys/introduction"},{"title":"Integrating Passkeys","href":"/features/authentication/passkeys/integration"},{"title":"Passkey options","href":"/features/authentication/passkeys/options"},{"title":"Native Passkeys","href":"/features/authentication/passkeys/native"},{"title":"Discoverable vs. non-discoverable","href":"/features/authentication/passkeys/discoverable-vs-non-discoverable"}]},{"title":"Backend authentication","href":"/features/authentication/backend-setup"},{"title":"Bring your own auth","href":"/features/authentication/bring-your-own-auth"}]},{"group":"Auth Proxy","pages":[{"title":"Auth Proxy","sidebarTitle":"Auth Proxy","href":"/features/authentication/auth-proxy"},{"title":"Captcha","sidebarTitle":"Captcha","href":"/features/authentication/captcha"}]},{"group":"Sessions","pages":[{"title":"Sessions","sidebarTitle":"Overview","href":"/features/authentication/sessions/overview"},{"title":"Session Profiles","href":"/features/authentication/sessions/session-profiles"}]},{"group":"Multi-factor authentication (MFA)","pages":[{"title":"Multi-Factor Authentication (MFA)","sidebarTitle":"Overview","href":"/features/authentication/mfa/overview"},{"title":"Satisfying MFA","href":"/features/authentication/mfa/satisfying-mfa"},{"title":"MFA Recovery","sidebarTitle":"Recovery","href":"/features/authentication/mfa/enforcement-and-recovery"},{"title":"MFA Examples","sidebarTitle":"Examples","href":"/features/authentication/mfa/examples"}]},{"group":"Advanced","pages":[{"title":"Proxying signed requests","href":"/features/authentication/proxying-signed-requests"}]}]},{"group":"Wallet and key management","pages":[{"title":"Wallets","sidebarTitle":"Overview","href":"/features/wallets"},{"group":"Import \u0026 export","pages":[{"title":null,"href":"/features/wallets/import-wallets"},{"title":null,"href":"/features/wallets/export-wallets"}]},{"title":"Pre-generated wallets","mode":"wide","href":"/features/wallets/pregenerated-wallets"},{"title":"Claim links","mode":"wide","href":"/features/wallets/claim-links"},{"title":"Account abstraction wallets","href":"/features/wallets/aa-wallets"},{"title":"Managed Secrets","href":"/features/secrets"}]},{"group":"Chain support","pages":[{"title":"Overview","mode":"wide","href":"/features/networks/overview"},{"group":"Supported networks","pages":[{"title":"Ethereum (EVM) support on Turnkey","sidebarTitle":"Ethereum (EVM)","href":"/features/networks/ethereum"},{"group":"Solana (SVM)","pages":[{"title":"Solana (SVM) support on Turnkey","sidebarTitle":"Overview","href":"/features/networks/solana"},{"title":"Solana transactions","sidebarTitle":"Transactions","href":"/features/networks/solana-transactions"},{"title":"Solana transaction construction for sponsored flows","description":"Understand what Turnkey manages for sponsored Solana transactions, what your application still controls, and the current transaction-construction caveats.","sidebarTitle":"Transaction construction","href":"/features/networks/solana-transaction-construction"},{"title":"Solana rent sponsorship","sidebarTitle":"Rent sponsorship","href":"/features/networks/solana-rent-refunds"}]},{"title":"Bitcoin support on Turnkey","sidebarTitle":"Bitcoin","description":null,"href":"/features/networks/bitcoin"},{"title":"Spark support on Turnkey","sidebarTitle":"Spark","href":"/features/networks/spark"},{"title":"Hyperliquid support on Turnkey","sidebarTitle":"Hyperliquid","href":"/features/networks/hyperliquid"},{"title":"Cosmos support on Turnkey","sidebarTitle":"Cosmos","href":"/features/networks/cosmos"},{"title":"Tron support on Turnkey","sidebarTitle":"Tron","href":"/features/networks/tron"},{"title":"Sui support on Turnkey","sidebarTitle":"Sui","href":"/features/networks/sui"},{"title":"Sei support on Turnkey","sidebarTitle":"Sei","href":"/features/networks/sei"},{"title":"Stacks","href":"/features/networks/stacks"},{"title":"Aptos support on Turnkey","sidebarTitle":"Aptos","href":"/features/networks/aptos"},{"title":"Tempo support on Turnkey","sidebarTitle":"Tempo","href":"/features/networks/tempo"},{"title":"Arc support on Turnkey","sidebarTitle":"Arc","href":"/features/networks/arc"},{"title":"Movement","href":"/features/networks/movement"},{"title":"IOTA support on Turnkey","sidebarTitle":"IOTA","href":"/features/networks/iota"},{"title":"Doge","href":"/features/networks/doge"},{"title":"Canton support on Turnkey","sidebarTitle":"Canton","href":"/features/networks/canton"},{"title":"Cardano support on Turnkey","sidebarTitle":"Cardano","href":"/features/networks/cardano"},{"title":"Others","mode":"wide","href":"/features/networks/others"}]}]},{"group":"Policies","pages":[{"title":"Policies","sidebarTitle":"Overview","href":"/features/policies/overview"},{"title":"Policy quickstart","sidebarTitle":"Quickstart","href":"/features/policies/quickstart"},{"title":"Policy language","sidebarTitle":"Language","href":"/features/policies/language"},{"title":"Smart contract interfaces — ABIs \u0026 IDLs","sidebarTitle":"Smart contract interfaces","href":"/features/policies/smart-contract-interfaces"},{"title":"Time-based policies","sidebarTitle":"Time-based policies","href":"/features/policies/time-based-policies"},{"group":"Examples","pages":[{"title":"Access control","sidebarTitle":"Access control","href":"/features/policies/examples/access-control"},{"title":"Time-based policies","sidebarTitle":"Time-based policies","href":"/features/policies/examples/time-based-policies"},{"title":"Co-signing transactions","sidebarTitle":"Multi-sig approvals","href":"/features/policies/examples/co-signing-transactions"},{"title":"Signing control","sidebarTitle":"Signing control","href":"/features/policies/examples/signing-control"},{"title":"Ethereum (EVM)","sidebarTitle":"Ethereum (EVM)","href":"/features/policies/examples/ethereum"},{"title":"Solana","sidebarTitle":"Solana","href":"/features/policies/examples/solana"},{"title":"Tron","sidebarTitle":"Tron","href":"/features/policies/examples/tron"},{"title":"Bitcoin","sidebarTitle":"Bitcoin","href":"/features/policies/examples/bitcoin"},{"title":"Spark","sidebarTitle":"Spark","href":"/features/policies/examples/spark"},{"title":"Swaps and Earn","sidebarTitle":"Swaps and Earn","href":"/features/policies/examples/swaps-earn"},{"title":"Tempo","sidebarTitle":"Tempo","href":"/features/policies/examples/tempo"}]},{"group":"Delegated access","pages":[{"title":"Overview","href":"/features/policies/delegated-access/overview"},{"title":"Client-side delegated access setup","href":"/features/policies/delegated-access/frontend"},{"title":"Server-side delegated access setup","href":"/features/policies/delegated-access/backend"},{"title":"End-User Delegated Agent Signing","sidebarTitle":"Agent signing","href":"/features/policies/delegated-access/agentic-wallets"}]}]},{"group":"Transaction management","pages":[{"sidebarTitle":"Overview","title":null,"href":"/features/transaction-management"},{"group":"Broadcasting","pages":[{"title":"Broadcasting (construction, signing, broadcast, gas abstraction)","sidebarTitle":"Broadcasting","href":"/features/transaction-management/broadcasting"},{"title":"Sending sponsored EVM transactions","href":"/features/transaction-management/sending-sponsored-transactions"},{"title":"Sending sponsored Solana transactions","href":"/features/transaction-management/sending-sponsored-solana-transactions"}]},{"title":"Balances","href":"/features/transaction-management/balances"},{"title":"Transaction history","sidebarTitle":"Transaction history","mode":"wide","href":"/features/transaction-management/transaction-history"},{"title":"Fiat onramp","mode":"wide","href":"/features/transaction-management/fiat-on-ramp"},{"group":"Earn","pages":[{"title":"Overview","href":"/features/transaction-management/earn"},{"title":"Browse the vault catalog","sidebarTitle":"Browse the vault catalog","mode":"wide","href":"/features/transaction-management/earn/vault-catalog"},{"title":"Deploy a vault wrapper","sidebarTitle":"Deploy a vault wrapper","mode":"wide","href":"/features/transaction-management/earn/deploy-wrapper"},{"title":"Manage wrappers","sidebarTitle":"Manage wrappers","mode":"wide","href":"/features/transaction-management/earn/manage-wrappers"},{"title":"Deposit into a vault","mode":"wide","href":"/features/transaction-management/earn/deposit"},{"title":"Withdraw from a vault","mode":"wide","href":"/features/transaction-management/earn/withdraw"},{"title":"Track positions","mode":"wide","href":"/features/transaction-management/earn/positions"},{"title":"Claim Merkl rewards","mode":"wide","href":"/features/transaction-management/earn/rewards"},{"title":"End-to-end example: Earn on Base","sidebarTitle":"End-to-end example: Earn on Base","mode":"wide","href":"/features/transaction-management/earn/end-to-end-example"}]},{"group":"Swaps","pages":[{"title":"Overview","mode":"wide","href":"/features/transaction-management/swap"},{"title":"Enable Swaps","mode":"wide","href":"/features/transaction-management/swap/enable-swap"},{"title":"Get a Swap Quote","mode":"wide","href":"/features/transaction-management/swap/get-swap-quote"},{"title":"Execute a Swap","mode":"wide","href":"/features/transaction-management/swap/execute-swap"},{"title":"Track Swap Status","mode":"wide","href":"/features/transaction-management/swap/track-swap-status"},{"title":"Swap Fee Sponsorship","tag":"Early access","mode":"wide","href":"/features/transaction-management/swap/fee-sponsorship"},{"title":"Fixed-Rate Swaps","tag":"Early access","mode":"wide","href":"/features/transaction-management/swap/fixed-rate"},{"title":"End-to-end example: Swap on Base","sidebarTitle":"End-to-end example: Swap on Base","mode":"wide","href":"/features/transaction-management/swap/end-to-end-example"},{"title":"Swaps in Dashboard","sidebarTitle":"Swaps in Dashboard","mode":"wide","href":"/features/transaction-management/swap/dashboard"}]}]},{"group":"Turnkey Verifiable Cloud","pages":[{"title":"Overview","href":"/features/verifiable-cloud/overview"},{"title":"Why TVC?","href":"/features/verifiable-cloud/why-tvc"},{"title":"Building your first app","href":"/features/verifiable-cloud/onboarding"},{"title":"Turnkey Verifiable Cloud quickstart","sidebarTitle":"Quickstart","tag":"Beta","href":"/features/verifiable-cloud/quickstart"},{"title":"Manifest sets and share sets","sidebarTitle":"Manifest sets and share sets","tag":"Beta","href":"/features/verifiable-cloud/manifest-sets-and-share-sets"},{"title":"Managing TVC apps and deployments","sidebarTitle":"Managing apps and deployments","tag":"Beta","href":"/features/verifiable-cloud/managing-apps-and-deployments"},{"title":"Proofs and Verification","href":"/features/verifiable-cloud/proofs-and-verification"},{"title":"Debug mode","sidebarTitle":"Debug mode","tag":"Beta","href":"/features/verifiable-cloud/debug-mode"},{"title":"TVC agent skill","sidebarTitle":"Agent skill","tag":"Beta","href":"/features/verifiable-cloud/agent-skill"}]},{"group":"IP Allowlist","pages":[{"title":"Overview","href":"/features/ip-allowlisting/overview"}]},{"group":"Webhooks","pages":[{"title":"Turnkey webhooks","sidebarTitle":"Overview","href":"/features/webhooks/overview"},{"title":"Verify webhook signatures","sidebarTitle":"Verify signatures","href":"/features/webhooks/verify-signatures"}]}]},{"group":"Reference","pages":[{"title":"Resource limits","mode":"wide","href":"/reference/resource-limits"},{"title":"API rate limits","sidebarTitle":"Rate limits","href":"/reference/rate-limits"},{"title":"Availability and compliance","href":"/reference/availability-and-compliance"},{"title":"Migrating wallets to Turnkey","sidebarTitle":"Migrating to Turnkey","href":"/reference/migration-guide"}]}]},{"tab":"API \u0026 SDK reference","pages":[{"title":"API \u0026 SDK reference","href":"/api-reference/overview/intro"}]},{"tab":"Security","pages":[{"title":"Security","href":"/security/overview"}]}]},"basePath":"","title":"Solana rent sponsorship - Turnkey","buildId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","deploymentId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-B4-wUcHm.js","lightbox-handle-r17bVUz3.js"]}