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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "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) |