Tools, FAQ, Tutorials:
See New Paper on CouchDB Server
How to See New Paper on CouchDB server?
✍: FYIcenter.com
If you are the PaperNet admin, you may want to see the
world state of the asset managed by papercontract.
PaperNet uses CouchDB to store the world state and configured
with a REST API on port 5984.
1. List all databases:
(magnetocorp admin)$ curl http://localhost:5984/_all_dbs ["_replicator","_users","mychannel_","mychannel_lscc","mychannel_papercontract"]
2. List all assets (called documents in CouchDB) of "mychannel_papercontract":
(magnetocorp admin)$ curl http://localhost:5984/mychannel_papercontract/_all_docs {"total_rows":1,"offset":0,"rows":[ {"id":"\u0000org.papernet.commercialpaperlist\u0000\"MagnetoCorp\"\u0000\"00001\"\u0000", "key":"\u0000org.papernet.commercialpaperlist\u0000\"MagnetoCorp\"\u0000\"00001\"\u0000", "value":{"rev":"1-9f3bd72d9ee632c77559b66709d26c7b"}} ]}
As you can see, the current state of paper 00001 is in the world state.
Â
⇒ Start CLI Container for DigiBank Admin
⇠issue.js - Application to Issue New Paper
⇑ commercial-paper Sample Network
⇑⇑ Hyperledger Tutorials
2019-11-21, 865👍, 0💬
Popular Posts:
How to use the "set-backend-service" Policy Statement for an Azure API service operation? The "set-b...
Where to find tutorials on Visual Studio? I want to know How to learn Visual Studio. Here is a large...
Where to get the detailed description of the json_encode() Function in PHP? Here is the detailed des...
How to access URL template parameters from "context.Request.Matched Parameters"object in Azure API P...
How to View Atom Feeds with IE (Internet Explorer)? If you want to view Atom Feeds with IE (Internet...