The query retrieves information about whether a specific auction is eligible for claiming and the time frame in which it can be claimed.
Sample query
query checkRedeemStatus(
$contractAddress:String!
$tokenId: BigInt!
$orgId: UUID1!
$networkId: UUID1!
){
checkRedeemStatus(
contractAddress: $contractAddress
tokenId: $tokenId
orgId: $orgId
networkId: $networkId
){
isTokenRedeemed
redeemableTxHash
redeemStatus
isEligible
eligibleTokens
}
}
Sample variable
{
"contractAddress": "0x959E967883891df8C857cF9E261eE672cffD644d",
"tokenId": "2",
"orgId": "5eb26a32-2a2f-4f4a-88fa-e92fad02b67d",
"networkId": "b260424b-bb37-4a3e-86d0-0866175e5e68"
}
Sample response
{
"data": {
"checkRedeemStatus": {
"isTokenRedeemed": true,
"redeemableTxHash": "0x2576ed9755e7b90500b1c890d3c7dac8b042017b75d4641788ebf3c2b1775278",
"redeemStatus": "COMPLETED",
"isEligible": false,
"eligibleTokens": 0
}
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
contractAddress | String | Redeem Contract Address | Yes |
tokenId | BigInt | Token ID | Yes |
orgId | UUID | Organization ID. | Yes |
networkId | UUID | Network ID. | Yes |
Feilds
Name | Type | Description |
---|---|---|
isTokenRedeemed | Boolean | Token Redeem Status |
redeemableTxHash | String | Token Redeem Hash |
redeemStatus | String | Token Status |
isEligible | Boolean | Will return the Eligibility of token id passed |
eligibleTokens | Integer | Count of Eligible token can be redeem |