Skip to main content

Questions tagged [close]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
34 views

How can I delete my account

I request for a deletion of my phantom wallet because I no longer need it
Edwin Idialu's user avatar
1 vote
1 answer
39 views

Which accounts can a program close?

Suppose I use the function close, which closes an arbitrary account, pub fn close(ctx: Context<Close>) -> ProgramResult { let dest_starting_lamports = ctx.accounts.destination....
qubitz's user avatar
  • 210
1 vote
1 answer
63 views

CLOSED_ACCOUNT_DISCRIMINATOR removed from 0.30

In Anchor 0.29 I was manually closing out accounts in my contract like this. let item_account_info = ctx.accounts.item.to_account_info(); let mut data = item_account_info.try_borrow_mut_data()?; for ...
ZeroNine's user avatar
  • 496
0 votes
2 answers
151 views

Solana Close program

I wan to close a solana program. I have to check what public key is used to close the program, how can I do that. I have multiple file wallet private keys but i do not know which belongs to it. Is ...
Akash's user avatar
  • 1
1 vote
1 answer
127 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
0 votes
2 answers
74 views

What does it mean Garbage Collection?

I wonder what is Garbage Collection?. When an Account no longer has enough Lamports to pay its rent, it will be removed from the network in a process known as Garbage Collection. Someone let you know?....
Gus's user avatar
  • 21
3 votes
1 answer
222 views

How do you repopen a closed account?

If an account has been closed with the following anchor context: #[account( mut, close = user, seeds = [ SEED_SCHEMA.as_bytes(), &user.key().as_ref()...
mega_creamery's user avatar
0 votes
1 answer
343 views

How to close associated token accounts on a program-owned account?

In my program I am making the program-owned account receive token payments. So I was wondering the following? Questions: Is there anything wrong with creating associated token accounts (ATAs) on a ...
Burger Bob's user avatar
  • 1,466
1 vote
1 answer
300 views

Is it common to have close account instruction inside my solana program

In my Solana program, users can create program-owned accounts. Although maybe they want to close it because it is no longer necessary and want to recoup the account rent/fees. I assume that closing ...
Burger Bob's user avatar
  • 1,466
3 votes
1 answer
933 views

How to safely close program buffers?

so recently I came across a tweet suggesting lazy developers to close program buffers with: solana program close --buffers -u m I know buffers are something like temp accounts used during program ...
vanderlinde's user avatar
3 votes
2 answers
2k views

429 Too Many Requests for url: https://api.mainnet-beta.solana.com/

I'm getting: 429 Too Many Requests for url: https://api.mainnet-beta.solana.com/ solana program close --buffers Does anyone know of a solution?
amirs's user avatar
  • 51
2 votes
2 answers
878 views

Closing token accounts with spl-token close not working

I'm trying to close token accounts with spl-token close <address>. But I'm not able to close any account with 0 tokens. The error is it cannot parse the token account, and points back to my ...
Omega's user avatar
  • 761