Loading...
Loading...
Manage encrypted BIP39 wallets stored at ~/.aibtc/. Create, import, unlock, lock, list, switch, delete, export, rotate passwords, set auto-lock timeouts, and check status or info for Stacks and Bitcoin addresses.
npx skill4agent add aibtcdev/skills wallet~/.aibtc/bun run wallet/wallet.ts <subcommand> [options]bun run wallet/wallet.ts create --name <name> --password <password> [--network mainnet|testnet]--name--password--networkmainnettestnettestnet{
"success": true,
"walletId": "...",
"Bitcoin (L1)": { "Native SegWit": "bc1q...", "Taproot": "bc1p..." },
"Stacks (L2)": { "Address": "SP..." },
"network": "testnet",
"mnemonic": "word1 word2 ... word24",
"warning": "CRITICAL: Save this mnemonic..."
}bun run wallet/wallet.ts import --name <name> --mnemonic "<24 words>" --password <password> [--network mainnet|testnet]--name--mnemonic--password--networkmainnettestnettestnet{
"success": true,
"walletId": "...",
"Bitcoin (L1)": { "Native SegWit": "bc1q...", "Taproot": "bc1p..." },
"Stacks (L2)": { "Address": "SP..." },
"network": "testnet"
}bun run wallet/wallet.ts unlock --password <password> [--wallet-id <id>]--password--wallet-id{
"success": true,
"walletId": "...",
"Bitcoin (L1)": { "Native SegWit": "bc1q...", "Taproot": "bc1p..." },
"Stacks (L2)": { "Address": "SP..." },
"network": "testnet"
}bun run wallet/wallet.ts lock{ "success": true, "message": "Wallet is now locked." }bun run wallet/wallet.ts list{
"wallets": [
{
"id": "...",
"name": "main",
"btcAddress": "bc1q...",
"address": "SP...",
"network": "testnet",
"createdAt": "2024-01-01T00:00:00.000Z",
"isActive": true,
"isUnlocked": false
}
],
"totalCount": 1
}bun run wallet/wallet.ts switch --wallet-id <id>--wallet-id{
"success": true,
"activeWalletId": "...",
"address": "SP...",
"network": "testnet"
}bun run wallet/wallet.ts delete --wallet-id <id> --password <password> --confirm DELETE--wallet-id--password--confirmDELETE{
"success": true,
"deletedWalletId": "...",
"message": "Wallet deleted permanently."
}bun run wallet/wallet.ts export --password <password> --confirm I_UNDERSTAND_THE_RISKS [--wallet-id <id>]--password--confirmI_UNDERSTAND_THE_RISKS--wallet-id{
"walletId": "...",
"mnemonic": "word1 word2 ... word24",
"warning": "SECURITY WARNING: ..."
}bun run wallet/wallet.ts rotate-password --old-password <pass> --new-password <pass> [--wallet-id <id>]--old-password--new-password--wallet-id{
"success": true,
"walletId": "...",
"message": "Password rotated. Use unlock with the new password."
}bun run wallet/wallet.ts set-timeout --minutes <n>--minutes{
"success": true,
"autoLockMinutes": 15,
"message": "Auto-lock set to 15 minutes."
}bun run wallet/wallet.ts status{
"message": "Wallet is locked. Unlock to perform transactions.",
"readyForTransactions": false,
"isUnlocked": false,
"currentNetwork": "testnet",
"wallet": { "id": "...", "address": "SP...", "btcAddress": "bc1q..." }
}bun run wallet/wallet.ts info{
"status": "ready",
"network": "testnet",
"Stacks (L2)": { "Address": "SP..." },
"Bitcoin (L1)": { "Native SegWit": "bc1q...", "Taproot": "bc1p..." }
}bun run wallet/wallet.ts stx-balance [--address <addr>]--address{
"address": "SP...",
"network": "testnet",
"balance": { "stx": "100 STX", "microStx": "100000000" },
"locked": { "stx": "0 STX", "microStx": "0" }
}lockexportdeleterotate-password