Skip to content

cryptolandtech/moonlet-core-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moonlet Core - Usage Example

Setup

npm install

Build lib

npm run build

Typescript usage examples

see src/

import { Wallet, Blockchains } from 'moonlet-core';

// Use the wallet
const myWallet = new Wallet();
console.log( "Generated mnemonics:", myWallet.mnemonics );

// create an ethereum account
const bc = myWallet.getBlockchain( Blockchains.ETHEREUM );
bc.createAccount();
const accs = bc.getAccounts();
console.log( accs[0].address );

TestRPC Helpers

Start All test rpcs

npm run start-all-rpcs

Stop all running test rpcs ( that have pids stored )

npm run stop-all-rpcs

License

MIT

About

Moonlet Core - Usage examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published