wallet_activate
Activate a wallet from a private key or mnemonic, storing it in the encrypted vault if available, and notify listeners via wallet-changed. Requires WEB3AGENT_ALLOW_AGENT_VISIBLE_SECRETS=1 when secrets are included.
Instructions
Activate a wallet from a private key or mnemonic using the selected backend (encrypted OWS vault when available, otherwise legacy wallet storage) and emits wallet-changed. Gated when secrets are in input: requires WEB3AGENT_ALLOW_AGENT_VISIBLE_SECRETS=1. Prefer local CLI: npx web3agent wallet activate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mnemonic | No | BIP-39 mnemonic phrase | |
| privateKey | No | Hex-encoded private key (0x-prefixed) | |
| accountIndex | No | BIP-44 account index (default 0, mnemonic only) | |
| addressIndex | No | BIP-44 address index (default 0, mnemonic only) |