A secure and efficient Solana program for transferring SPL Token-2022 tokens between accounts.
This program implements a token transfer mechanism using the Token-2022 program on Solana blockchain. It enables secure transfers of SPL tokens between token accounts while maintaining all necessary checks and balances.
- Supports Token-2022 standard
- Implements checked transfer operations
- Handles decimal precision automatically
- Built with Anchor framework
- Complete account validation
6GmLK8Qz9hBnCa89jcaVoX4b8nKCYc62p4hUbZ5XrsBL
The program requires the following accounts for execution:
from: Signer account initiating the transferfrom_ata: Source token accountto_ata: Destination token accountmint: Token mint accounttoken_program: Token-2022 program
transfer_token2022: Transfers specified amount of tokens between accounts
- Solana Tool Suite
- Anchor Framework
- Rust
anchor buildanchor test
The program implements several security measures:
- Checked transfers to prevent decimal precision errors
- Signer verification
- Mutable account constraints
- Token account ownership validation
MIT