iota.js-remote-pow

1.0.1 • Public • Published

iota.js-remote-pow

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

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.

/iota.js-remote-pow/

    Package Sidebar

    Install

    npm i iota.js-remote-pow

    Weekly Downloads

    4

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    13 kB

    Total Files

    13

    Last publish

    Collaborators

    • pasupulaphani