wallet_encrypt
Encrypt Ethereum and EVM-compatible wallets using a password to secure private keys, mnemonics, or JSON files, with optional custom scrypt parameters.
Instructions
Encrypt a wallet with a password
Input Schema
Name | Required | Description | Default |
---|---|---|---|
options | No | Optional encryption options | |
password | Yes | The password to encrypt the wallet | |
wallet | Yes | The wallet to encrypt (private key, mnemonic, or JSON) |
Input Schema (JSON Schema)
{
"properties": {
"options": {
"description": "Optional encryption options",
"properties": {
"scrypt": {
"properties": {
"N": {
"type": "number"
},
"p": {
"type": "number"
},
"r": {
"type": "number"
}
},
"type": "object"
}
},
"type": "object"
},
"password": {
"description": "The password to encrypt the wallet",
"type": "string"
},
"wallet": {
"description": "The wallet to encrypt (private key, mnemonic, or JSON)",
"type": "string"
}
},
"required": [
"wallet",
"password"
],
"type": "object"
}