Creating addresses
Generating an NGNT address
Generating an address with a seed phrase
const ethers = require('ethers');
const mnemonic = <seed phrase here>;
// you can generate random seed phrase with await ethers.HDNode.entropyToMnemonic(ethers.utils.randomBytes(16));
const wallet = ethers.Wallet.fromMnemonic(mnemonic);
const address = wallet.address;Generating multiple addresses with the same seed phrase
First address derivation path = m/44'/60'/0'/0/0
Second address derivation path = m/44'/60'/0'/0/1
Third address derivation path = m/44'/60'/0'/0/2
Fourth address derivation path = m/44'/60'/0'/0/3
...and so onLast updated
Was this helpful?