Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Create libra wallet with npm i kulap-libra
async function createWallet() {
const { LibraWallet } = require('kulap-libra')
// Generate an account
const wallet = new LibraWallet() // create new wallet with BIP39
const account = wallet.newAccount() // Derivation paths to "LIBRA WALLET: derived key$0"
return {
address: account.getAddress().toHex(), // Get full address
mnemonic: wallet.config.mnemonic // Your super secret key
(async () => {
const wallet = await createWallet()
console.log('wallet', wallet)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.