redeemEarnableCode

[Authenticated] This mutation allows users to claim a specific NFT by passing the wallet address and a valid claim code for the NFT contract that is configured with a Claim Code. The Claim code can be passed as a one-time generated code or a dynamic code provided, allowing users to claim multiple NFTs at once.This V2 mutation is created to return invoiceID as reference to know the current status of the transaction

Sample query

mutation RedeemEarnableCode($code: String!, $destAddr: String) {
  redeemEarnableCode(code: $code, destAddr: $destAddr) {
    redeemInitiated
    invoiceID
  }
}

Sample variable

{
  "code": "EXAMPLE_CODE1",
  "destAddr": "0xd605E300B81147d02Abd70E922390475220f6746"
}

Sample response

{
  "data": {
    "redeemEarnableCode": {
      "redeemInitiated": true,
      "invoiceID": "22c09d24-e775-42b2-b16f-6f4af4dfbac4"
    }
  }
}

Arguments

NameTypeDescriptionRequired
codeStringClaim Code created for the SaleYes
destAddrStringEVM Compatible Wallet AddressYes

Fields

NameTypeDescription
redeemInitiatedBooleanProvides status either in true or false for the claimable request
invoiceIDUUID1Provides the invoice ID as reference