Generate Claim Link
Example
curl --location --request GET 'https://dev.underdogprotocol.com/v2/projects/n/4/nfts/1/claim' \
--header 'Authorization: Bearer {token}'
const axios = require('axios');
let config = {
method: 'get',
url: 'https://dev.underdogprotocol.com/v2/projects/n/4/nfts/1/claim',
headers: {
'Authorization': 'Bearer {token}'
}
};
axios(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Response
{
"link": "https://claim.underdogprotocol.com/nfts/Dic1tC9yBhaDerQpV8ZBAsruBUKQsRWtCWysG965ADWi?otp=926b7a07-d4e6-44e6-a43e-526e452ff06f&network=DEVNET",
"otp": "926b7a07-d4e6-44e6-a43e-526e452ff06f"
}
Last updated