wallet_import
Import a private key for a specified blockchain, encrypt it with a password, and store it in the keystore for later transaction signing.
Instructions
Import an existing private key, encrypt it, and store it in the keystore.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>",
"privateKey": "<privateKey>",
"password": "<password>"
},
"name": "wallet_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain ID (ambient, solana, bsc, arbitrum) | |
| label | No | Optional label for the wallet | |
| password | Yes | Encryption password for the keystore | |
| privateKey | Yes | Private key in chain-native format (hex for EVM, base58 for SVM) |