@decentralized-identity/ion-pow-sdk
v1.0.18
Published
sdk to perform proof of work for ION
Downloads
2,430
Keywords
Readme
ion-pow-sdk
This repo contains the sdk for ION proof of work.
How To Use It
- npm install ion-pow-sdk
const IonProofOfWork = require('ion-pow-sdk');
orimport IonProofOfWork from 'ion-pow-sdk'
- call
IonProofOfWork.submitIonRequestUntilSuccess(getChallengeUri, solveChallengeUri, JSON.stringify(requestBody))
- The SDK will get the challenge, solve it, and submit the request for you.