close_token_account
Close a Solana token account to reclaim rent lamports by transferring remaining funds to a specified destination address.
Instructions
Close a token account and reclaim rent
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"walletName": "<walletName>",
"tokenMint": "<tokenMint>",
"destinationAddress": "<destinationAddress>"
},
"name": "close_token_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenMint | Yes | Token mint address | |
| walletName | Yes | Name of the wallet that owns the account | |
| destinationAddress | Yes | Address to send remaining lamports to |