Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 770 Bytes

File metadata and controls

30 lines (20 loc) · 770 Bytes

Documentation

Presently, we do not have any formal documentation other than our example

Installation

npm install blockchaindata-lib

API

SaveTextToBlockchain( dataString ) dataString - any string that will be saved to blockchain

SaveJSONToBlockchain( objectJSON ) objectJSON - any json object that will be savet to blockchain

SaveFileToBlockchain( data ) data - the javascript File object

GetObjectFromBlockchain( txid ) txid - transaction id

Return values

All "Save" functions are returned the json object {result: boolean, message: string, txid: string}

function GetObjectFromBlockchain returned the json object {type: string, base64: string}