Create a Blockchain Address
Step-by-step example of how to create a Public Mint blockchain address
Before you start
Creating Addresses
const Web3 = require('web3');
const provider = 'https://public.tst.publicmint.io:8545'; // Public Mint TestNet Blockchain
const opts = {
defaultBlock: 'latest',
transactionConfirmationBlocks: 1,
}
const web3 = new Web3(provider, null, opts);
(async function () {
const passphrase = 'test';
const account = await web3.eth.accounts.create(passphrase);
console.log('PMINT ACCOUNT address:', account.address);
console.log('PMINT ACCOUNT PK:', account.privateKey);
})();Last updated