🏓Get Verify Coupon

Request

query questCoupon {
  questCoupon(input: {address: "0x5037e7...", condition: "ActiveScore", value: 5000}) {
    coupon {
      r
      s
      v
    }
  }
}

Response

{
  "data": {
    "questCoupon": {
      "coupon": {
        "r": "0xccd90b3476a8236484875f6f36e066b86ede0738b58422bc97bed6d80221b4c5",
        "s": "0x1c9499def2d08658dbaebae099d5e0fdfa5e776101617a4c06fa9afc6eec4b27",
        "v": 27
      }
    }
  }
}

If you got message "Task timed out after xx.xx seconds", Please Let phi-team know.

Contract Call Example

Using this coupon, verified user can claim quest directly.

  • params

    • Contract address => Quest Object (0x3D8C06e65ebf06A9d40F313a35353be06BD46038)

    • tokenId => tokenId you want to claim (ex. 100151)

      ActiveScore5000 => 100151
    • condition => Condition + Value (ex.ActiveScore5000)

    • Coupon => { "r": "0xccd90b3476a8236484875f6f36e066b86ede0738b58422bc97bed6d80221b4c5", "s": "0x1c9499def2d08658dbaebae099d5e0fdfa5e776101617a4c06fa9afc6eec4b27", "v": 27 }

Last updated