mirage-solana-wallet
Installation
SKILL.md
Mirage Solana Agent Wallet
Use this skill whenever the task is a Solana wallet operation the agent should execute on the user's behalf: wallet creation, address resolution, balance checks, funding, arbitrary Anchor program calls, swaps, SPL transfers (public or private), or raw transaction/message signing. Everything runs through mirage and the bundled mirage ows CLI using an OWS-backed wallet (default: agent-treasury).
Safety
- Treat every wallet, funding, transfer, program-invocation, and signing flow as a sensitive action.
- Before opening a funding link, broadcasting a transfer, invoking a program instruction, or signing a raw transaction, restate the exact wallet, network (cluster/rpc), program/recipient, mint, amount, instruction(s), and any user-provided args or accounts in one short confirmation.
- If the user asks for a swap quote or price, do not run
mirage swapyet. First call the quote endpoint, present the expected input/output and price impact, then ask for explicit confirmation before broadcasting a swap. - Prefer devnet for first-time runs against an unfamiliar program.
- Prefer
OWS_PASSPHRASEover passing--passphraseon the command line. - Do not convert UI amounts to base units for
mirage transferormirage swap; those CLI commands already accept UI amounts like0.1. Convert UI amounts only when directly calling the quote API.
Workflow
- Create or resolve the wallet to operate.
- Create a named wallet with
mirage ows wallet create --name <wallet>. - List wallets with
mirage ows wallet list. mirage address,mirage balance,mirage fund,mirage transfer,mirage swap, andmirage invokeauto-create the defaultagent-treasurywallet if it is missing.
- Create a named wallet with
Related skills