Test Accounts
Localnet provides pre-funded test accounts for immediate use.Available Accounts
These accounts are automatically available when localnet is running.
Using Test Accounts
Check Balance
Send Tokens
Deploy Contracts
Execute Contracts
Account Details
Alice
Primary test account, typically used for deployments.Bob
Secondary test account, useful for testing transfers.Mnemonics
Test accounts use deterministic mnemonics for reproducibility. Query the actual mnemonics from your localnet keyring:Creating Additional Accounts
Generate New Account
Fund from Alice
Import Existing
Multi-Account Workflows
Token Transfer
Contract Ownership Transfer
Checking Balances
Single Account
All Test Accounts
JSON Output
Reset Account Balances
To restore accounts to initial state:Scripting with Test Accounts
Bash Script
Test Script
Troubleshooting
Account not found
Account not found
Test accounts are only available when localnet is running:
Insufficient funds
Insufficient funds
Account may have spent its balance. Reset localnet:
Wrong keyring
Wrong keyring
Localnet uses the
test keyring backend:Best Practices
- Use alice for deployments - Keep bob for testing interactions
- Reset often - Start fresh to avoid state confusion
- Script everything - Make tests reproducible
- Check balances - Verify before complex operations
- Use JSON output - Easier parsing in scripts