Socket
Book a DemoInstallSign in
Socket

@iota/powbox.patch

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iota/powbox.patch

A simple shim to override the standard AttachToTangle behaviour of the iota.lib.js library to use a powbox.

latest
npmnpm
Version
0.0.2
Version published
Maintainers
3
Created
Source

Powbox - IOTA.js Library Shim

This library is used to shim the iota.lib.js library to allow for it to be used with the Powbox. This enables for users to offload PoW from web user or small devices without capabilities.

This library has been constructed for this powbox application.

Basic Usage

The library exposes one function, which your require or import. This function is used to overlay powbox functionality to your current iota.lib.js instance.

// Import the Sanbox Monkey Patch for the IOTA lib
const powboxPatch = require('powbox.patch.js')

// Patch the current IOTA instance
powboxPatch(iota, `https://powbox.testnet.iota.org`, 500, `sdkd...sdaa`)
  • iota: Object The iota.lib.js instance in your application
  • url: String URL of the Powbox you wish to use
  • delay: Integer Milliseconds to wait before checking for PoW update. Null value defaults to 1000
  • key: String API key used to raise the un-authenticated API limits. Optional

API Key

In order to receive an API you should go to the following URL to receive an API for the IOTA Testnet:

https://powbox.testnet.iota.org

If you are running your own powbox, please generate a token from the appropriate sources

Keywords

iota

FAQs

Package last updated on 16 Feb 2018

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