[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
Name | Type | Description | Required |
---|---|---|---|
code | String | Claim Code created for the Sale | Yes |
destAddr | String | EVM Compatible Wallet Address | Yes |
Fields
Name | Type | Description |
---|---|---|
redeemInitiated | Boolean | Provides status either in true or false for the claimable request |
invoiceID | UUID1 | Provides the invoice ID as reference |