Dasar-dasar SPL Token
Bagian ini membahas dasar-dasar untuk berinteraksi dengan SPL Token, berfokus pada instruksi yang paling umum digunakan.
Semua contoh di bagian ini berfungsi sama baik dengan Token Program asli maupun Token Extensions Program (Token 2022), karena mereka berbagi implementasi dasar yang sama.
Instruksi paling umum yang akan Anda lihat saat berinteraksi dengan SPL Token meliputi:
Create a Token Mint
Learn how to create an SPL Token mint.
Create a Token Account
Learn how to create SPL Token Accounts.
Mint Tokens
Learn how to mint new units of a token.
Transfer Tokens
Learn how to transfer tokens between token accounts.
Approve Delegate
Learn how to approve delegates for a token account.
Revoke Delegate
Learn how to revoke the token account delegate.
Set Authority
Learn how to set authority for mints or token accounts.
Burn Tokens
Learn how to burn tokens.
Sync Native
Learn how to convert native SOL to wrapped SOL.
Close Token Account
Learn how to close token accounts.
Freeze Account
Learn how to freeze token accounts.
Thaw Account
Learn how to thaw a frozen token account.
Is this page helpful?