ArcPay / arcpay-server

1 stars 0 forks source link

ownership proof api #12

Closed 0xbok closed 1 year ago

0xbok commented 1 year ago

the ownership proofs are fetched from the continuously updating merkle tree, so this doesn't reflect their finalized proofs. We should have another endpoint to get finalized ownership proof.

query {
  getOwnershipProofs(
    address:[218, 30, 169, 125, 76, 109, 114, 49, 37, 178, 110, 74, 20, 65, 195, 153, 208, 234, 11, 228]) {
      index,
    lowCoin,
    highCoin
  }
}
{
  "data": {
    "getOwnershipProofs": [
      {
        "index": 1,
        "lowCoin": 0,
        "highCoin": 5
      }
    ]
  }
}