On Solana, accounts must hold a rent-exempt balance (lamports) to exist. When you close an empty token account, those lamports are returned to the destination you specify. If you set
outcomeAccountRentRecipient when requesting an order, retrieve that value from your stored order params and reuse it as the close destination. Otherwise, choose any destination (typically the user’s wallet).Closing a token account is a standard SPL Token action. DFlow does not provide a dedicated endpoint for this.Choose the rent destination
Decide where the reclaimed rent should go. If your app set
outcomeAccountRentRecipient when creating the order, use that address.Select a rent destination
Select a rent destination
KYC Requirements
Prediction market applications must use Proof to meet Kalshi compliance requirements.API Routes
This recipe does not call DFlow APIs. It uses a Solana RPC endpoint and the SPL Token program.Cookbook Repository
This recipe, along with many more, is available in the DFlow Cookbook Repo. You can clone it and start coding immediately.Need Help?
Email Support
Reach out to our team at [email protected] for technical support,
partnership inquiries, or general questions.
Join Our Discord
Connect with other developers, get help, and stay updated on the latest
DFlow developments.
Dev Notifications
Join the DFlow Dev Notifications Telegram group to stay in the loop on
new features and other announcements.