Token Tools is Grape's token authority workspace for mint lifecycle, authority management, metadata operations, and distributor workflows on Solana.
Alias redirect: /tokentools -> /token
Workspace Structure
Token Tools contains two sections:
Token Authority Operations
It uses the same wallet connection and RPC controls as Identity.
Connect/disconnect via Solana Wallet Adapter.
Uses the shared RPC selector from the app provider context.
Token Program Selector
Token Authority Manager supports program-level targeting:
SPL Token Program (default)
This active program setting is applied across operations that depend on token program semantics.
Token Authority Operations
1) Authority Inventory + Risk Scanner
Scans candidate mints for:
Freeze authority exposure
Metadata update authority exposure
Adds risk flags (for example mutable metadata or empty metadata URI where detected).
Supports custom mint inputs.
Exports scan results to CSV.
2) Program Buffers (Upgradeable Loader)
Discovers authority-owned upgradeable loader buffers.
Shows buffer size and lamports.
Supports closing buffers to a selected recipient.
3) Bulk Authority Rotation Wizard
Rotates selected authority types in batch:
Metadata update authority
Target mint list can be explicit or derived from scan results.
4) Update Mint/Freeze Authority
Updates mint authority or freeze authority for a selected mint.
Supports revocation by leaving new authority empty.
5) Authority Mints
Enumerates mints controlled by the connected wallet.
Scan modes:
Known mints (recommended)
Displays program type, supply, and authority flags.
Creates a new mint with configurable decimals.
Mint close authority extension is supported for Token-2022 mode.
Mints supply to destination owner ATA.
Creates destination ATA when needed.
8) Mint + Distribute (Batch)
Batch input format: wallet,amount per line.
Mints and distributes in one workflow.
User-funded upload flow from connected wallet:
Upload image and apply URI into metadata draft.
Upload metadata JSON draft or JSON file.
Auto-updates URI fields after upload.
Creates metadata PDA for a mint.
Inputs include name, symbol, URI, seller fee bps, mutability, and optional update authority.
Rotates Metaplex metadata update authority to a new wallet.
Preserves existing metadata fields and updates only URI.
Accepts mint address or metadata PDA.
13) Grape Distributor Quick Wizard
Guided flow:
Derive distributor + vault PDAs from mint
Build allocations (wallet,amount or wallet,amount,index)
Generate Merkle root + claim package JSON
Prefill downstream Issue/Claim sections
Index strategy options:
On-chain safe (recommended)
14) Grape Distributor (Issue/Admin)
Admin setup and maintenance:
15) Grape Distributor (Claim/User)
User claim workflow:
Apply claim package JSON or load from URL
Upload claim package JSON to Irys
Generate and copy end-user claim link (/claims?manifest=...)
Submit claim with index/amount/proof
Optional local Merkle proof verification
Optional close-claim-status rent reclaim helper
No ?action= deep-link routing is currently defined for /token.
Token Tools includes the same Holdings panel used in Identity:
SOL balance and token holdings
Metadata-enriched token display
NFT metadata tab where available
Mint-level details and metadata inspection
Disabled by default unless server upload mode is enabled.
Environment Variables (Token-Relevant)
NEXT_PUBLIC_SOLANA_DEFAULT_RPC_URL
NEXT_PUBLIC_IRYS_NODE_URL
Irys node for client upload flow (default: https://uploader.irys.xyz).
NEXT_PUBLIC_IRYS_GATEWAY_URL
Gateway base for uploaded content URLs (default: https://gateway.irys.xyz).
Optional server-sponsored upload mode:
IRYS_SERVER_UPLOAD_ENABLED=true
IRYS_SOLANA_PRIVATE_KEY (required when enabled)