Import Quai Wallet
import_walletImport an existing Quai private key into the encrypted wallet store under a chosen name and password, so it can be used for transactions without passing the raw key again.
Instructions
Import an existing Quai private key into this server's encrypted wallet store, under a name and password, so it can be used with send_transaction without passing the raw key around again. Uses the same standard Ethereum/Web3 V3 keystore encryption as create_wallet (scrypt + AES-128-CTR + MAC), written to disk with owner-only file permissions. The private key you pass in is used once to encrypt and is never returned or logged. Whichever zone the key's address belongs to is detected automatically -- Quai addresses can't be moved between zones.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A name for this wallet (letters, numbers, "-", "_"; 1-64 chars). Must not already exist. | |
| password | Yes | Password to encrypt the wallet with (minimum 8 characters). Not stored anywhere. | |
| privateKey | Yes | The existing private key to import (0x-prefixed or not). |