๐ŸŽฏGet Claimed Status

You can perform an claimedStatus for a specific address.

Request

query claimedStatus {
  claimedStatus(input: {address: "0xaaa", unclaimed: true}) {
    data
    status
  }
}

query claimedStatus {
  claimedStatus(input: {address: "0xaaa"}) {
    data
    status
  }
}

  1. If unclaimed is set to false (or not provided, as it defaults to false), the query returns the objects that the user at the specified address has already claimed.

  2. If unclaimed is set to true, the query returns the objects that the user at the specified address is eligible to claim but has not claimed yet.

Response

// unclaimed == true
{
  "data": {
    "claimedStatus": {
      "data": [
        "100151", <= you can get users unclaimed object
         ],
      "status": "success"
    }
  }
}

{
  "data": {
    "claimedStatus": {
      "data": [
        "100152",
        "100153"
         ],
      "status": "success"
    }
  }
}

Philand-lib

import { getAchievedQuest } from 'philand-lib';

const result = await getAchievedQuest(
      '0x5037e7747fAa78fc0ECF8DFC526DcD19f73076ce'
    );

Last updated