UNPKG

bitfact

Version:

A Javascript library to fingerprint (prove) your data, text, & files on the Ethereum blockchain.

16 lines (14 loc) 414 B
// NOTE: Update to USE from a package manager instead. const BitFact = require("../BitFact"); const loadConf = require("./loadConf"); const setup = loadConf({ provider: "", privateKey: "", options: { chain: "ropsten" }, }); // creates a BitFact (async () => { const bitfact = new BitFact(setup); const receipt = await bitfact.stampText("Hello World!", "hello world memo"); console.log(receipt); })();