-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add close empty spl-token accounts transaction #118
Conversation
src/agent/index.ts
Outdated
@@ -463,8 +470,15 @@ export class SolanaAgentKit { | |||
async tensorListNFT(nftMint: PublicKey, price: number): Promise<string> { | |||
return listNFTForSale(this, nftMint, price); | |||
} | |||
|
|||
1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls remove.
|
||
const accountExceptions = [ | ||
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", // USDC | ||
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", // USDT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think only USDC exception is fine since that's the prevalent stablecoin on Solana
Please pull latest changes from main and merge them. Also, run |
Please add an action file in https://github.com/sendaifun/solana-agent-kit/tree/main/src/actions |
@thearyanag @arihantbansal added the action file. This PR focuses on closing only empty ATA . |
Pull Request Description
Changes Made
This PR adds the following changes:
Implementation Details
Transaction executed by agent
Example transaction:
transaction
Prompt Used
close my empty token accounts
Checklist