Skip to main content

Questions tagged [rent]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
297 views

Can you create accounts with less lamports than the rent-exempt minimum?

Accounts on Solana are considered rent-exempt if they hold at least the cost of their rent for 2 years (based on the size of the account's data). Is it possible to create an account that's not rent-...
Joe C's user avatar
  • 1,116
4 votes
1 answer
879 views

Is rent collected on Solana?

I have created a wallet account that holds my SOL balance and only sends and receives SOL. Will there be rent on this account? E2B5PspC2A3UVsfyQhrzhFBwb23RMEiMrFsG3Zoy6QfR (testnet) When I made a ...
Koichi's user avatar
  • 81
2 votes
3 answers
5k views

How do I close a Solana Account?

We can easily close PDAs to redeem their rent to their owner, however what I'm wondering is can the same be done for a normal, on-curve Solana account? From what I can see once you've sent the minimum ...
McBain's user avatar
  • 5,384
2 votes
1 answer
368 views

What dataLength to use for getMinimumBalanceForRentExemption() for a SOL account?

According to the Solana documentation the minimum balance/amount to be send to new SOL account can be calculated using getMinimumBalanceForRentExemption() getMinimumBalanceForRentExemption() takes a ...
mahnunchik's user avatar
1 vote
1 answer
154 views

PDA rent exemption collection to transaction fee payer error on account close

In a transaction, I’m trying to close an ATA and a PDA. The ATA is closed by calling close_account from the SPL Token 2022 crate / On Chain Program, and the rent exemption can be sent without any ...
Vincent Berthier's user avatar