Questions tagged [rent]
The rent tag has no summary.
64 questions
2
votes
1
answer
32
views
How to get minimum balance(rent exempt lamports) from accounts in Pinocchio 0.10.1?
In Pinocchio 0.10.1, Rent::get()?.minimum_balance(DATA_LEN) has been deprecated.
So I am trying to use the Rent::try_minimum_balance()
let rent = Rent::from_account_view(my_account)?;// fails to run ...
1
vote
2
answers
71
views
How to support 20,000 dynamic entries without paying full rent upfront on Solana?
I'm building a survey system that needs to store up to 20,000 encrypted responses (~5.8MB total). Each response is 288
bytes (256 encrypted data + 32 byte commitment).
What I want: Pay rent ...
1
vote
2
answers
61
views
Customize ATA closure rent destination
Is it possible to customize where the rent deposit and the wrapped SOL go when closing a WSOL associated token account?
For example, say I have a WSOL ATA that I want to close. Ideally, I’d like the ...
0
votes
1
answer
58
views
Best Storage Strategy for a Solana Password Manager: Single PDA with Vec vs. Multiple PDAs?
I'm building a password manager on Solana where users can store encrypted credentials on-chain while keeping metadata (site, username, etc.) in a database.
Right now, I’m deciding between two storage ...
3
votes
1
answer
60
views
Why create account with space set to 0?
Going through the tutorial on how to create a Solana Account here https://solana.com/developers/cookbook/accounts/create-account
And in the example the space of the account is set to 0.
My question is,...
0
votes
2
answers
89
views
Mainnet deploy hangs
My anchor deploy on mainnet is stuck for over 1 hour at:
18.6% | Resending 359/359 transactions
The deployment SOL (~3.11 SOL) has already been removed from my wallet. I'm concerned about losing these ...
0
votes
0
answers
116
views
Transaction simulation failed: Transaction results in an account (1) with insufficient funds for rent
I know that this is a question that has been asked a few times before, but i can't wrap my head around it and all the answers that have been given weren't helpful.
What i'm trying to do: Send the ...
0
votes
0
answers
334
views
How can I get back the rent fee for several swaps on the same token?
I did several quick scalps on tokens on BullX exchange (pump fun tokens migrated to raydium) and got unrealistic amounts of rent fees.
I traded small amounts, so basically it wouldn't be big money, ...
0
votes
1
answer
84
views
What happens when upgrade a program?
When upgrade a program, I think it should just adjust the rent if not enough.
But from this upgrade tx: https://solscan.io/tx/...
1
vote
1
answer
180
views
What tools monitor the total amount of SOL rent locked across all Solana accounts?
I'm curious if there's any platform or tool that provides real-time tracking of the total amount of SOL locked across all Solana accounts to cover the rent requirements.
And if such a tool doesn't ...
1
vote
3
answers
418
views
Can I get the SOL back from these token accounts?
I programatically made a small deposit in a stablecoin clmm pool on Raydium. I noticed some SOL was also taken from my wallet, and from what I understand it was to create new token accounts and ...
0
votes
1
answer
233
views
How Accounts and rent works in solana?
Accounts require a rent deposit in SOL, proportional to the amount of data stored, which is fully refundable when the account is closed. But the thing that confuses me is that if i have a phantom ...
1
vote
2
answers
322
views
close account cause token lost?
Say I have an token address, it contains some usdt.
If I close the token address, by withdraw all sol.
Will the usdt (and any other tokens) in that address lost ?
If it's lost, is there any way to get ...
0
votes
1
answer
256
views
solana account size
In my test:
token account: 165 bytes, need rent 0.00203928 sol
account: 0 byte, no need rent.
Questions:
Can you confirm that normal account's size is 0 byte?
Is it because the sol balance is ...
3
votes
1
answer
128
views
What if the rent exemption price goes up?
Given that
new Solana accounts must be credited - at creation time - with enough SOL to be "rent-exempt",
the balance of an account isn't allowed to go below its corresponding minimum "...