Created
February 28, 2018 00:57
-
-
Save anyong/f9935cd8e43f0d9fdfb86a405f26bd05 to your computer and use it in GitHub Desktop.
Powbox usage example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const IOTA = require('iota.lib.js') | |
const remoteCurl = require('@iota/curl-remote') | |
// IOTA node and powbox are separate servers | |
const provider = 'https://nodes.testnet.iota.org:443' | |
const powbox = 'https://powbox.testnet.iota.org' | |
// Create an IOTA object as usual | |
const iota = new IOTA({ provider }) | |
// Monkeypatch `attachToTangle` to use the powbox | |
remoteCurl(iota, powbox) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment