For latest iota.js (version >= 1.x.x) attachToTangle remote PoW. Library to delegate Proof-of-work. More info
npm install iota.js-remote-pow
const remoteATT = require('iota.js-remote-pow')
const attachToTangle = remoteATT()
// Set attachToTangle to your IOTA client
const { composeAPI } = require('@iota/core')
const iota = composeAPI({
attachToTangle
})
- thetangle(https://nodes.thetangle.org:443) - Default
- powsrv(https://api.powsrv.io:443)
- remoteATT([options])
options
is optional
Name | Type | Default | Description |
---|---|---|---|
provider |
string | thetangle | Provider name. Available: thetangle, powsrv |
timeoutMs |
integer | 5000 | attachToTangle timeout in milliseconds |
apiKey |
string | null | Provider API key if any |
logger |
object | null | Inject your custom logger |
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.