x/document
Transactions
tx document create [holder id] [proof] [extra data]
- Create a single document
tx document create-documents [holder id][,[holder id]] [proof][,[proof]] [extra data][,[extra data]]
- Create a batch of documents
tx document revoke [holder id] [proof]
- Revoke a document
tx document update [holder id] [proof] [extra data]
- Update information of a document
Queries
query document document-by-issuer [holder] [issuer]
- Get all documents of a holder issue by a specific issuer
query document holder [holder id]
- Get all documents of a holder
query document proof [proof]
- Get document information base on document's proof