Provenance Network API
Introduction
MOI offers the ability to provenance storage and interaction proofs on The Indus Provenance Network. This provenance layer allows Participants to verify proofs that have been written into it by other applications through the PN API.
The Provenance Network can manage two kinds of proofs:
- Storage Proof: The proof that contains the metadata of a digital asset. For example, the digital asset of NFT can be stored anywhere and the metadata of the NFT can be stored here.
- Interaction Proof: The proof that contains the provenance information about an interaction. For example, the fact that you attended the event can be provenanced globally, which offers some tamper resistance to the proof data.
Write Proofs
The ability to write proofs with the PN API is gated and must be accessed through ZenZee's Dot API Framework.
Please contact Sarva Labs for more information.
Read Storage Proofs
- Request
- Response
curl -XGET 'https://pnapi.moinet.io/moi/read?cid="{STORAGE_HASH}"'
{
"data": {
"editionID": "0xFD5e1026480822f026Fc7626c2a1077f693CB677",
"previousEditionStateHash": "bafikbzaceauppbbmymnfkblqm4fq2h34werlcnonwci7bmvsr5iafj5fbrl42",
"nftHash": "bafikbzacedbldazqrozqlgo63qaklvxmr4znqfrqokswfenpwarcd3q6kbpos",
"edition": 10,
"previousOwner": "0x2D3D233fB80b24095a78aaD7Cb5dB2D8029441D8",
"purchasedDate": null,
"purchasedPrice": null,
"purchasedSymbol": null,
"currentOwner": "0x2D3D233fB80b24095a78aaD7Cb5dB2D8029441D8",
"status": "listed",
"paymentReceipt": null,
"nft_content_hash": "",
"lastModified": 1652382632619,
"set_price": "111"
},
"signature": "0x87534edf7089ece8890735077a8cb07096dbc34b066e2b02ea7c156953c775120a8039d4f94e7775c1dd219b7ccfd9aaf52776191c55fafa72b658fa678c20c41b"
}
Read Interaction Proofs
- Request
- Response
curl -XGET 'https://pnapi.moinet.io/moi/readtransactiondata?cid="{IXN_HASH}"'
{
"meta": {
"code": 200,
"requestId": "e88b29b7-7eab-4046-b08e-1a714a5db0d1",
"message": "success"
},
"data": {
"krama_id": "7GvnBr2V88PsG1TwFqnAz7BJ1PySJwG966oT9x9P9akumsAmJAKrpzakrSJHBpUYQKVLafS5KopVYcCp7m7JZGPm1WwBbrYUAue8vcqDT5q5ZqZDQzqmJu9NZNKfFmBcXXaoQSEd451SuUHGuUJ6QWwigY2WiZhDLihsaY7X2ZisYZ1jfEGfpQ.16Uiu2HAkwXRFRQK7YZMZNFj4XHAwesSzCjLno2rEunDDvpWfL9YF",
"signature": "01473045022100b035dcecffce807ee9ee3812bba30bc33ea50b9aa7b7789465a43c5d333aee8802205c7a3c0508ac278c3dc51a1822106f3f3396c3563b9cb8cf07fbea4cf3152e54021f3033ebfd33f935967c20b2eae5cba0d5c2894e18d72d2273f557cb006cfeec",
"transaction_data_hash": "AVCg5AIg3SyqOXh+Qs3z5mZaVXuvUVMf5/PEHI3BFq2f7QQGs+4=",
"transaction_data": {
"krama_id": "7GvnBr2V88PsG1TwFqnAz7BJ1PySJwG966oT9x9P9akumsAmJAKrpzakrSJHBpUYQKVLafS5KopVYcCp7m7JZGPm1WwBbrYUAue8vcqDT5q5ZqZDQzqmJu9NZNKfFmBcXXaoQSEd451SuUHGuUJ6QWwigY2WiZhDLihsaY7X2ZisYZ1jfEGfpQ.16Uiu2HAkwXRFRQK7YZMZNFj4XHAwesSzCjLno2rEunDDvpWfL9YF",
"time_stamp": 1652382639,
"content": "eyJkYXRhIjp7ImVkaXRpb25JRCI6IjB4RkQ1ZTEwMjY0ODA4MjJmMDI2RmM3NjI2YzJhMTA3N2Y2OTNDQjY3NyIsInByZXZpb3VzRWRpdGlvblN0YXRlSGFzaCI6ImJhZmlrYnphY2VhdXBwYmJteW1uZmtibHFtNGZxMmgzNHdlcmxjbm9ud2NpN2JtdnNyNWlhZmo1ZmJybDQyIiwibmZ0SGFzaCI6ImJhZmlrYnphY2VkYmxkYXpxcm96cWxnbzYzcWFrbHZ4bXI0em5xZnJxb2tzd2ZlbnB3YXJjZDNxNmticG9zIiwiZWRpdGlvbiI6MTAsInByZXZpb3VzT3duZXIiOiIweDJEM0QyMzNmQjgwYjI0MDk1YTc4YWFEN0NiNWRCMkQ4MDI5NDQxRDgiLCJwdXJjaGFzZWREYXRlIjpudWxsLCJwdX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