Files
903cb059c4 Feature/eng 744 debug and pretty settings (#4)
* ENG-744 Added debugging settings, and pretty

* Added pretty to dev dependency

* fix(prettier): remove ignore file

---------

Co-authored-by: John Huang <[email protected]>
2025-04-29 15:02:00 -04:00

10 lines
337 B
TypeScript

// useful for generating a wallet for testing
// save the private key to .env
import { generatePrivateKey, privateKeyToAccount } from 'viem/accounts';
const privateKey = generatePrivateKey();
const account = privateKeyToAccount(privateKey);
console.log('Private Key:\n', privateKey);
console.log('Wallet Address:\n', account.address);