Create and Manage Wallets
This guide explains how to create a wallet for the DAC Blockchain using the command-line interface (CLI) provided with the dacnode binary, as well as general information for external wallets.
Method 1: Using the DAC Node CLI
The dacnode binary includes a built-in wallet manager compatible with the standard Ethereum keystore format.
1. Create a New Account
To generate a new wallet address and keystore file:
Linux / macOS:
bash
./dacnode account new --datadir ./dataWindows:
cmd
dacnode.exe account new --datadir ./data2. Set a Password
The system will prompt you to enter and confirm a password.
- Important: Remember this password. It encrypts your private key. There is no "forgot password" feature.
3. Output
After confirming the password, the CLI will output:
- Public Address:
0x...(Save this!) - Path to Keystore: Location of the encrypted key file.
4. Backup
Navigate to the keystore directory inside your data folder. Copy the usage UTC--... file to a secure location (USB drive, offline storage).
Method 2: Importing into MetaMask (For Developers)
To develop dApps or Smart Contracts, you often need a browser extension wallet like MetaMask.
- Locate your Keystore file (created above) or export your Private Key.
- Open MetaMask.
- Select Import Account.
- Choose JSON File (for Keystore) or Private Key.
- Enter your password (if using JSON) or paste the key.
- Connect MetaMask to the DAC Testnet RPC (see network connection details).
Security Best Practices
- Backup: Always keep multiple backups of your Keystore file.
- Offline Storage: For large amounts, use cold storage (offline devices).
- Phishing: Never enter your private key on a website unless you are 100% sure it is safe.