Skip to content

Mosaic.js provides a web3 interface to scale DApps on Ethereum

License

Notifications You must be signed in to change notification settings

rachinkapoor/mosaic.js

 
 

Repository files navigation

Developer guide

Mosaic = require('./index');
Mosaic.ValueChainId = '0x0000000000000000000000000000000000000001';

mosaic = new Mosaic("ws://localhost:8020");

mosaic.eth.getBlockNumber().then(console.log);


mosaic.aux('0x0000000000000000000000000000000000000002').getBlockNumber().then(console.log);

mosaic.aux('0x0000000000000000000000000000000000000001').getBlockNumber().then(console.log);

Using AbiBinProvider

Mosaic = require('./index')
abiBinProvider = new Mosaic.utils.AbiBinProvider();
jsonInterface = abiBinProvider.getABI('EIP20TokenMock');
contractBin = abiBinProvider.getBIN('EIP20TokenMock');

About

Mosaic.js provides a web3 interface to scale DApps on Ethereum

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.8%
  • Shell 5.2%