UNPKG

@nekoproject/wallets

Version:

Cross-chain Wallet

10 lines (8 loc) 549 B
import { ETHWallet, SPLWallet } from "../lib/index.commonjs"; (async ()=>{ const seeds = 'priority art lumber bargain small dirt attract couch pigeon habit patrol topple derive truck area subject embrace rent blame shield parent bracket fashion race' const splWallet = await SPLWallet.fromMnemonic(seeds) console.log(`SPL Wallet address: ${splWallet.address}: ${splWallet.getPrivateKey()}`) const ethWallet = await ETHWallet.fromMnemonic(seeds) console.log(`ETH Wallet address: ${ethWallet.address}: ${ethWallet.getPrivateKey()}`) })()