Skip to content

pasupulaphani/iota.js-remote-pow

Repository files navigation

iota.js-remote-pow

For latest iota.js (version >= 1.x.x) attachToTangle remote PoW. Library to delegate Proof-of-work. More info

Getting started

    npm install iota.js-remote-pow

How to Use

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
})

Remote PoW providers

API

  • remoteATT([options])

options object properties

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

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.