Skip to main content

Questions tagged [close]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
23 views

Existed account is not shown on explorer

I have this account: https://explorer.solana.com/address/E8a2qSSEoe5pShCYnRuxbdxmNhFsqeuWFrsQW7iZNtUh. In explorer, it show that account is already closed. But when I fetch it using code or cli, it ...
Ta Ba Hoang Phuc's user avatar
1 vote
1 answer
14 views

how to close an account

I deposited solana on marginfi and I was charged 0.016 solana for creating an account HXnCRyaNnitnL3Vrie2vHXm2RgCciBfp9inW4k11RG4y. question! can I close this account and get this currency back? and ...
Andres's user avatar
  • 11
0 votes
0 answers
16 views

Not sure why Stake Pool Stake / Withdraw and Raw Transactions both suddenly started to fail

I woke up this morning to a nightmare. Neither Stake or Withdraw worked, transfer not working and I checked my wallet and my pool tokens had absconded (noticeably none of my SOL was gone so I don't ...
user28998's user avatar
0 votes
1 answer
36 views

How can I close a token account AND transfer all my sol to another wallet within the same transaction?

It doesn’t even need to be an automatic process, I just want a way for them to be in the same transaction. Eg.: https://solscan.io/tx/...
Obm's user avatar
  • 1
0 votes
1 answer
111 views

close sol account - rent

Beginner here, I just learned to create wallet with CLI as well as closing token account. I am now looking to figure out how to also close the sol token account of a wallet. So that wallet would be ...
L B's user avatar
  • 1
0 votes
2 answers
61 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
73 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
  • 220
2 votes
1 answer
106 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
  • 516
0 votes
2 answers
326 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
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
0 votes
2 answers
113 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
353 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
439 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,506
1 vote
1 answer
344 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,506
3 votes
1 answer
1k 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
4 votes
2 answers
3k 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
  • 61
2 votes
2 answers
1k 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
  • 771