redshift.newAddress()

node v8.17.0
version: 0.4.4
endpointsharetweet
let redshift = require("@stellar-fox/redshift"), { string } = require("@xcmats/js-toolbox"), // generate a new address address = redshift.newAddress("mySuperS3Cr3T", 27); console.log( `${string.padLeft("mnemonic:", 16)} ${address.mnemonic}`, `${string.padLeft("passphrase:", 16)} ${address.passphrase}`, `${string.padLeft("account number:", 16)} ${address.account}`, `${string.padLeft("public:", 16)} ${address.keypair.publicKey()}`, `${string.padLeft("secret:", 16)} ${address.keypair.secret()}` );
Loading…

no comments

    sign in to comment