Smart Wallets
Generate Private Key
const { privateKey, address } = await orda.smartWallets.generatePrivateKey();
console.log('Private Key:', privateKey);
console.log('EOA Address:', address);Validate Private Key
const isValid = orda.smartWallets.validatePrivateKey(privateKey);Get Address from Private Key
const address = await orda.smartWallets.getAddressFromPrivateKey(privateKey);Create Project Wallet
const wallet = await orda.smartWallets.createProjectWallet(
'project-id',
privateKey,
8453, // Chain ID (Base)
'MODULAR_ACCOUNT_V2' // Account type (optional)
);
console.log('Smart Wallet Address:', wallet.getAddress());