Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 405 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 405 Bytes

ion-pow-sdk

This repo contains the sdk for ION proof of work.

How To Use It

  1. npm install ion-pow-sdk
  2. const IonProofOfWork = require('ion-pow-sdk'); or import IonProofOfWork from 'ion-pow-sdk'
  3. call IonProofOfWork.submitIonRequestUntilSuccess(getChallengeUri, solveChallengeUri, JSON.stringify(requestBody))
  4. The SDK will get the challenge, solve it, and submit the request for you.