Add Account class

This commit is contained in:
Michael Vines
2018-08-22 17:03:50 -07:00
parent 0f1f52e3e4
commit 5a0206bcfe
13 changed files with 109 additions and 85 deletions

View File

@ -0,0 +1,16 @@
/*
Creating a new account
Usage:
$ npm run dev
$ node ./account.js
*/
//eslint-disable-next-line import/no-commonjs
const solanaWeb3 = require('..');
//const solanaWeb3 = require('@solana/web3.js');
const account = new solanaWeb3.Account();
console.log(account.publicKey);