GetBackSOL
Back to blog
·4 min read

Gasless transactions on Solana: closing accounts with zero SOL in your wallet

There's a specific, almost absurd problem that affects exactly the people a rent-reclaim tool is built for: if your wallet has genuinely zero SOL — nothing but a pile of dead token accounts — you can't sign any transaction at all, including the one that would give you SOL back.

Why every transaction needs a fee payer

Every Solana transaction designates a fee payer — the account whose balance covers the network fee, typically a fraction of a cent. By default, that's whoever initiates the transaction: you. If your balance is zero, there's nothing to pay the fee with, and the transaction can't be submitted. It's a hard requirement of the network, not a setting anyone can turn off.

How gasless relaying works

The fix doesn't change who authorizes the transaction — it changes who pays for it. A transaction can have two signers: you, authorizing the closeAccount instructions on your own accounts, and a separate fee-payer wallet controlled by the platform, covering the tiny network cost. Your wallet signs to prove ownership; it never needs to hold SOL to do that.

Concretely: the app builds the transaction with the platform's wallet set as fee payer, your wallet signs its part, and the signed (but not yet submitted) transaction goes to a server that adds its own signature and sends it to the network.

The part that actually matters: what stops abuse

A "we'll pay your fees" endpoint is only safe if it's picky about what it's willing to co-sign. Before adding its signature, the server should check, instruction by instruction, that the transaction only contains closeAccount calls and the expected fee transfer — nothing else. Without that check, anyone could use the same endpoint to get arbitrary transactions paid for, draining the fee-payer wallet. It's a small operational float either way (never user funds — just enough SOL to cover network fees), but it's still worth locking down properly rather than trusting the client to only ever send what it's supposed to.

Why it matters for this specific product

Without gasless support, the wallets that would benefit most from a rent-reclaim tool — the ones with nothing left but dormant accounts — are exactly the ones locked out of using it. Removing the SOL requirement isn't a convenience feature here; it's the difference between the tool working for its actual target audience or not.

Ready to check your own wallet? Scan it with GetBackSOL — free to check, 30% fee only on what you actually reclaim.