Skip to content

Instantly share code, notes, and snippets.

@anyong
Created February 28, 2018 00:57
Show Gist options
  • Save anyong/f9935cd8e43f0d9fdfb86a405f26bd05 to your computer and use it in GitHub Desktop.
Save anyong/f9935cd8e43f0d9fdfb86a405f26bd05 to your computer and use it in GitHub Desktop.
Powbox usage example
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