blueprotocolsdk

0.0.2 • Public • Published

BlueProtocolSDK

This library provides methods for promise based interactions with the Blue Protocol SDK.

Current Features

  • Black listing of known attackers and whitelisting of verified recipients of funds
  • Cloud based static code analysis of Ethereum smart contracts

Install

npm install blueprotocolsdk

Requirements

  • API Key, You can request one by contacting us here.
  • Ability to sign message objects with an ethereum private key.

Tested signing libraries

Usage

const BlueProtocolSdk = require('blueprotocolsdk');
const blueSdk = new BlueProtocolSdk(
 YOUR_API_KEY,
 YOUR_PUBLIC_ADDRESS
);

let message = blueSdk.requestScanLists(someAddress);

// Signing is not provided by this package. The message is intended to be
// signed by the wallet implementing this SDK.
// below line is placeholder..
let signedMessage = sign(message, privateKey);

blueSdk.sendRequest(message, signedMessage)
.then(result => {
    console.log(result)
})
.catch(err => {
    console.error(err)
})

Package Sidebar

Install

npm i blueprotocolsdk

Weekly Downloads

1

Version

0.0.2

License

none

Unpacked Size

53.5 kB

Total Files

12

Last publish

Collaborators

  • occamblue