Skip to content

​What Does Thawing a Token Account Do?

Thawing changes a token account from the frozen state back to the initialized state. After a thaw succeeds, the account can receive, transfer, and burn tokens again. Only the mint’s freeze authority can thaw token accounts.

​How to Thaw a Token Account

Thawing a token account uses the Token Program’s ThawAccount instruction. The ThawAccount instruction verifies that the token account belongs to the mint and that the signer is the mint’s freeze authority, then changes the token account state from frozen back to initialized. Native token accounts do not support thawing.

​Source Reference

ItemDescriptionToken ProgramToken Extension Program
MintThe mint state stores the optional freeze authority used to thaw token accounts.SourceSource
AccountStateThe token account states, including Frozen and Initialized.SourceSource
ThawAccountAn instruction that changes a frozen token account back to the initialized state.SourceSource
process_toggle_freeze_accountShared processor logic for freezing and thawing token accounts.SourceSource

​Kit

These examples use @solana/kit.

​Web3.js v3

These examples use the class-based @solana/web3.js v3 API with @solana-program instruction builders.
Instructions

​Rust

Add these dependencies to Cargo.toml (tested with Rust 1.89 and 1.98):
Cargo.toml
Rust

​Python

This example uses solana (solana-py) 0.41 and solders:
Terminal
Python

​Web3.js (legacy)

These examples use legacy @solana/web3.js 1.x with @solana/spl-token.
@solana/web3.js 1.x is no longer actively maintainedIt receives critical fixes only. Use Kit for new code. To migrate existing code, follow the Kit upgrade guide, or the web3.js v3 migration guide to keep the class-based API.To run this code, install 1.x with npm install @solana/web3.js@1. A plain npm install @solana/web3.js installs v3, which this code doesn’t run on.