This API used to Confirm the Onchain Redeem Token
Sample mutation
mutation ConfirmOnchainRedeemToken($redeemCollectionAddress:String!,
$tokenId:BigInt!,
$walletAddress:String!,
$quantity:BigInt,
$orgId:UUID1!,
$networkId:UUID1!,
$txHash:String!){
ConfirmOnchainRedeemToken(
redeemCollectionAddress: $redeemCollectionAddress
tokenId: $tokenId
walletAddress: $walletAddress
quantity: $quantity
orgId: $orgId
networkId: $networkId
txHash:$txHash)
}
Sample variable
{
"redeemCollectionAddress": "0x9e90b5eFA76487Ac803572AE92AfA1e622145FD5",
"tokenId": "2",
"walletAddress": "0x825e6ce1855ed046F19A384ea6F1498e47fD405F",
"quantity": "0",
"orgId": "8fb128bd-f55d-4bcc-8b6c-0beb684e4d4e",
"networkId": "b260424b-bb37-4a3e-86d0-0866175e5e68",
"txHash": "0xd1d9a8658f833fe2029f3a81903cde9f74c475946ec1b7579d76afe46324c9ae"
}
Sample Response
{
"data": {
"ConfirmOnchainRedeemToken": {
"Redeem Completed Successfully"
}
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
redeemCollectionAddress | String | Redeem Collection Address | Yes |
tokenId | BigInt | Token ID to be Redeemed | Yes |
walletAddress | String | Wallet Address | Yes |
quantity | BigInt | Quantity of token | No |
tokenURI | String | Token URI | No |
orgID | UUID | The Organization ID | Yes |
networkId | UUID | Redeemable NFT Contract ID | Yes |
tokenType | TokenType | The Contract Deployment Type | Yes |
gating | GateInput | Gating Rule Input | No |
Field
Name | Type | Description |
---|---|---|
status | String | Will return the status of redeem token process on completion otherwise error message |
signerInfo | SignerResponse | Will return the Signer details which needed to pass it to blockchain Transaction |