Skip to main content
Glama

thaw_account

Thaw a frozen token account on Solana to enable transfers by providing wallet name, token mint address, and account address.

Instructions

Thaw a frozen token account to allow transfers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletNameYesName of the wallet with freeze authority
tokenMintYesToken mint address
accountAddressYesAddress of the token account to thaw

Implementation Reference

  • The handler function that implements the core logic for the 'thaw_account' tool. It validates the wallet, ensures connection, and calls the SPL Token library's thawAccount function to thaw the specified token account.
    async function handleThawAccount(args: any) { const { walletName, tokenMint, accountAddress } = args; const wallet = wallets.get(walletName); if (!wallet) { throw new Error(`Wallet '${walletName}' not found`); } ensureConnection(); const tokenMintPubkey = new PublicKey(tokenMint); const accountPubkey = new PublicKey(accountAddress); const signature = await thawAccount( connection, wallet.keypair, accountPubkey, tokenMintPubkey, wallet.keypair ); return { success: true, signature, accountAddress, explorerUrl: `https://explorer.solana.com/tx/${signature}?cluster=${currentNetwork}` }; }
  • src/index.ts:395-416 (registration)
    Registers the 'thaw_account' tool in the tools list, including its name, description, and input schema for MCP protocol.
    { name: "thaw_account", description: "Thaw a frozen token account to allow transfers", inputSchema: { type: "object", properties: { walletName: { type: "string", description: "Name of the wallet with freeze authority" }, tokenMint: { type: "string", description: "Token mint address" }, accountAddress: { type: "string", description: "Address of the token account to thaw" } }, required: ["walletName", "tokenMint", "accountAddress"] } },
  • src/index.ts:1342-1343 (registration)
    Dispatches calls to the 'thaw_account' tool by invoking the handleThawAccount handler function in the main tool request handler.
    case "thaw_account": result = await handleThawAccount(args);
  • Calls the SPL Token library's thawAccount function, which performs the actual thawing of the token account.
    const signature = await thawAccount( connection, wallet.keypair, accountPubkey, tokenMintPubkey, wallet.keypair );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ExpertVagabond/solana-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server