0.0.2 • Published 6 years ago
blueprotocolsdk v0.0.2
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)
})