Core engine for all your IOTA applications
Homepage Repository npm Download
See a demo web app built with the help of iota-engine
As we found it difficult for developers to start with writing IOTA Applications, we created this library for developers to simplify building apps using the IOTA Tangle Network.
Currently main focus is to simplify pow (iota's proof of work) and provide a client-server architecture for your apps to easily let run the pow on the client
Thus you can use this package any nodeJS environment you wish to: If you have webgl2 enabled you can profit from your client-side gpu acceleration. Otherwise it will use local pow (CPU)
# install with npm
$ npm install --save iota-engine
// Import into your project
const iotaEngine = require('iota-engine')
var iotaEngine = require('iota-engine')
//on the server
iotaEngine.initServer(seed)
iotaEngine.createBundle(amount, address)
// on the client
iotaEngine.initClient()
iotaEngine.attachBundle(serverBundle) // put in bundle created on the server and attach to Tangle
If you want to modify for your own specific setup, please checkout
the project and read iota-engine.js to see all implemented methods,
which may help you on how to properly use attachToTangle method
What can the IOTA Engine currently do for you:
- initClient
- initServer
- getBalance
- createAddresses
- createBundle
- isCorrectBundle
- attachBundle
(old sendIOTA method which works client-side only
... needs seed on client, might be security risk)
- sendIOTA
# in development
Keep the IOTA engine running, fuel it with IOTA ♥: ZSMTNIACPEHZOSETNKJFWZDYUHPUWJWYQCGUQRMUFPQWQKTMVPPXPOWQNQPNRRJ9ONBKMPD9WIVUUJMCZQJFCXOJ9C