submitProof

Definition

Submits a blockchain proof request. Wrapper for submitProof.

Syntax

db.submitProof([version],[argumentsDocument])'

If no version is provided, submits a proof for the current version.

If the only argument is a document, it will be interpreted as an arguments document for the submitProof command against the current version.

Example

ProvenDB v5074 (current)> db.submitProof(5000)
{
        "ok" : 1,
        "version" : NumberLong(5000),
        "dateTime" : ISODate("2019-06-12T00:55:05Z"),
        "hash" : "e7644cf9845b7d2be8eb084213c1c5712477ae9177f2ba92147a4deefe20e07f",
        "proofId" : "b7cbef90-8cac-11e9-a57b-01a63b3c949f",
        "status" : "Pending"
}
ProvenDB v5074 (current)> db.submitProof(5000,{collections:'update5326062'})
{
        "ok" : 1,
        "version" : NumberLong(5000),
        "dateTime" : ISODate("2019-06-12T00:55:24Z"),
        "hash" : "f773b0550793fd6862f2d333b37224a737c933ba91bda0d66c8d32644cea553c",
        "proofId" : "c3386f70-8cac-11e9-9608-01573e5da0d5",
        "status" : "Pending"
}
ProvenDB v5074 (current)> db.submitProof({collections:'update5326062'})
{
        "ok" : 1,
        "version" : NumberLong(5074),
        "dateTime" : ISODate("2019-06-12T00:55:41Z"),
        "hash" : "f773b0550793fd6862f2d333b37224a737c933ba91bda0d66c8d32644cea553c",
        "proofId" : "cd087d60-8cac-11e9-a57b-016bd2739dac",
        "status" : "Pending"
}

See also

submitProof