SPL Token Tools
Create, mint, burn, and manage SPL tokens on Solana Devnet.
Sigil Wallet agents can fully manage SPL (Solana Program Library) tokens through the built-in tool registry. All operations execute on Solana Devnet.
Available Tools
| Tool | Description |
|---|---|
create_token | Create a new SPL token mint with optional metadata (name, symbol, URI) |
mint_tokens | Mint tokens to this wallet (requires mint authority) |
burn_tokens | Burn tokens from the agent's wallet |
get_token_accounts | List all SPL token accounts owned by this wallet |
transfer_token | Transfer SPL tokens to another wallet (creates recipient account if needed) |
close_empty_token_accounts | Close all zero-balance accounts and reclaim rent SOL |
Example Scenarios
These scenarios leverage the SPL token tools:
"If a token account has zero balance, close it and reclaim rent"
"Mint 100 DEMO tokens every day at 9am"
"If I create a new token, mint 1,000,000 to my primary wallet"
"Burn any SPAM tokens that appear in my wallet"Token Creation with Metadata
The create_token tool supports optional metadata to create fully-featured tokens:
"Create a token with 9 decimals, name 'Sigil Test Token', symbol 'SGT'"
"Create a new token called 'AgentCoin' with symbol 'AGNT' and 6 decimals"Metadata parameters:
- name — Token name (max 32 characters)
- symbol — Token ticker/symbol (max 10 characters)
- uri — Optional URI pointing to a JSON file with image and description
- decimals — Precision (0-9, default 9)
Token Lifecycle
A typical token workflow:
- Create a new token mint with
create_token(specifying name, symbol, decimals) - Mint initial supply with
mint_tokens(you become the mint authority) - Transfer tokens between wallets using
transfer_token(recipient account created automatically) - Burn unwanted tokens with
burn_tokens - Close empty accounts to reclaim rent with
close_empty_token_accounts
Guardrail Integration
All token operations pass through the Guardrails layer:
mint_tokens— Checked against daily volume limitsburn_tokens— Checked against per-trade value limitstransfer_token— Validates recipient allowlistsclose_empty_token_accounts— Always allowed (reclaiming rent is never risky)
See Safety & Guardrails for details.
