Request information about the state of Open Publish documents and ownership.
This module is a client-side library for performing queries on Open Published documents.
user in the context of Open Publish is a Bitcoin wallet address such as the tesnet address
npm install openpublish-state
openpublish-state module defaults to using the Open Publish state engines that run at
First we need to create the client and specify which blockchain network we're interested in querying.
var openpublishState =network: "testnet" // "bitcoin";
Finding a single document by SHA1
Find all documents by type
Find all documents published by a user