Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Bitproof Module for Node.js
JavaScript
Branch: master

typo

latest commit 7b87871694
Louison authored
Failed to load latest commit information.
.gitignore Added read endpoint
README.md typo
config.js Added read endpoint
index.js Added read endpoint
package.json First commit

README.md

Bitproof for Node.js

Installation

You can install Bitproof with npm:

$ npm install bitproof

Certify

// dependencies
var Bitproof = require('bitproof');

// Find your API credentials in your Bitproof Dashboard
var notary = new Bitproof(YOUR_API_KEY, YOUR_SECRET_KEY);

// push some hex in the blockchain
notary.push(HEX_UP_TO_40_BYTES, function(result) {
    console.log(result);
}, function(err) {
    console.log(err);
});

Read a proof

// dependencies
var Bitproof = require('bitproof');

// no API keys are needed for read only
var notary = new Bitproof();

// read some hex in the blockchain
var transactionId = 'e65a501b8caab14cea934e5aff06a82110ed152cc6c6d62a5b5146dc9dc21dae';
notary.read(transactionId, function(result) {
    console.log(result);
}, function(err) {
    console.log(err);
});

Applications using Bitproof for Node.js

Something went wrong with that request. Please try again.