Skip to main content

UsageProof

txHashTxHashrequired

Possible values: Value must match regular expression ^[0-9a-f]{64}$

batchIdinteger<int64>required
windowEndMsinteger<int64>

Unix time in milliseconds.

Possible values: >= 0

usageRootHex32required

Possible values: Value must match regular expression ^[0-9a-f]{64}$

usageChainHeadHex32

Possible values: Value must match regular expression ^[0-9a-f]{64}$

settleTxHashTxHashrequired

The settleUsage transaction whose usageSettled event carries the root.

Possible values: Value must match regular expression ^[0-9a-f]{64}$

leafHashHex32required

Possible values: Value must match regular expression ^[0-9a-f]{64}$

leaf objectrequired

Preimage fields of the leaf, in hashing order (leaf = sha256(0x00 || ...)). See https://docs.co-relayer.com/contract/usage-proofs.

property name*any

Preimage fields of the leaf, in hashing order (leaf = sha256(0x00 || ...)). See https://docs.co-relayer.com/contract/usage-proofs.

path object[]required
  • Array [
  • sidestringrequired

    Possible values: [left, right]

    hashHex32required

    Possible values: Value must match regular expression ^[0-9a-f]{64}$

  • ]
  • UsageProof
    {
    "txHash": "string",
    "batchId": 0,
    "windowEndMs": 0,
    "usageRoot": "string",
    "usageChainHead": "string",
    "settleTxHash": "string",
    "leafHash": "string",
    "leaf": {},
    "path": [
    {
    "side": "left",
    "hash": "string"
    }
    ]
    }