@@ -8,15 +8,11 @@ delegate for a user's token account. Close it when the user no longer has active
88fixed delegations, recurring delegations, or subscription delegations for that
99mint.
1010
11- Closing the account returns its rent to the account's lamport funder. The funder
12- is usually the user, but it can be any payer that funded the Subscription
13- Authority account. If any active delegation still depends on the authority,
14- close those delegations first.
15-
16- Closing does not clear the SPL Token delegate approval on the user's token
17- account. Once the Subscription Authority PDA is gone that approval is inert —
18- nothing can move funds with it — but it stays recorded on the token account
19- until the user revokes it explicitly. See
11+ Closing returns the account's rent to its funder (the user, or whichever payer
12+ funded it). Close any active delegations first.
13+
14+ Closing does ** not** clear the SPL Token delegate approval. Once the PDA is gone
15+ the approval is inert, but it stays on the token account until revoked — see
2016[ Revoke The Delegate Approval] ( #revoke-the-delegate-approval ) .
2117
2218## Close The Authority
@@ -83,13 +79,10 @@ until the user revokes it explicitly. See
8379
8480## Revoke The Delegate Approval
8581
86- Closing the Subscription Authority leaves the delegate approval on the user's
87- token account. That approval is harmless once the PDA is closed, but the user
88- can clear it — returning the token account to a clean state — with
89- ` RevokeSubscriptionAuthority ` . It calls the token program's ` Revoke ` and is
90- signed by the user, so it works whether or not the Subscription Authority still
91- exists. Send it on its own, or in the same transaction as
92- ` CloseSubscriptionAuthority ` .
82+ ` RevokeSubscriptionAuthority ` clears the leftover delegate approval from the
83+ user's token account. It calls the token program's ` Revoke ` , signed by the user,
84+ so it works whether or not the Subscription Authority still exists. Send it
85+ standalone or alongside ` CloseSubscriptionAuthority ` .
9386
9487<Tabs items = { [" TypeScript" , " Rust" ]} >
9588 <Tab value = " TypeScript" >
0 commit comments