Skip to main content
edited text
Source Link
Burger Bob
  • 1.5k
  • 4
  • 19

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.

  1. I assume that closing program accounts can only occur from within the program itself, which requires making a dedicated program instruction. Is - is this common?

  2. If I close the entire Solana program, will all the program-owned accounts also be closed at the same time? If so who will receive all the account fees, and - the upgrade auth?

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.

  1. I assume that closing program accounts can only occur from within the program itself, which requires making a dedicated program instruction. Is this common?

  2. If I close the entire Solana program, will all the program-owned accounts also be closed at the same time? If so who will receive all the account fees, and the upgrade auth?

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.

  1. I assume that closing program accounts can only occur from within the program itself, which requires making a dedicated program instruction - is this common?

  2. If I close the entire Solana program, will all the program-owned accounts also be closed at the same time? If so who will receive all the account fees - the upgrade auth?

In my solanaSolana program, users can create program owned-owned accounts.

Although maybe they want to close it because it is no longer necessary and want to recoup the account rent/fees.

  1. I assume that closing program accounts can only occur from within the program itself, which requires making a dedicated program instruction?. Is this common?

  2. If I close the entire solanaSolana program, will all the program owned-owned accounts also be closed at the same time? If so who will receive all the account fees, and the upgrade auth?

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.

  1. I assume that closing program accounts can only occur from within the program itself, which requires making a dedicated program instruction? Is this common?

  2. If I close the entire solana program, will all the program owned accounts also be closed at the same time? If so who will receive all the account fees, the upgrade auth?

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.

  1. I assume that closing program accounts can only occur from within the program itself, which requires making a dedicated program instruction. Is this common?

  2. If I close the entire Solana program, will all the program-owned accounts also be closed at the same time? If so who will receive all the account fees, and the upgrade auth?

Source Link
Burger Bob
  • 1.5k
  • 4
  • 19

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.

  1. I assume that closing program accounts can only occur from within the program itself, which requires making a dedicated program instruction? Is this common?

  2. If I close the entire solana program, will all the program owned accounts also be closed at the same time? If so who will receive all the account fees, the upgrade auth?