Socket
Book a DemoInstallSign in
Socket

iota.js-remote-pow

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iota.js-remote-pow

For latest iota.js (version > 1.x.x) attachToTangle remote PoW

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

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

  • thetangle(https://nodes.thetangle.org:443) - Default
  • powsrv(https://api.powsrv.io:443)

API

  • remoteATT([options])

options object properties

options is optional

NameTypeDefaultDescription
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.

Keywords

attachToTangle

FAQs

Package last updated on 11 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.