How to Verify the User/Player/VIP Level Requirement on Your Website with Callback Verification
It helps you filter qualified participants and encourage users to reach the level you require for your website.









// const api_key =
"3lhpTSAJd6XDgBe4XWcozob4iMmYUlkPc9c4fwnoydGk4Bh5lSA3qrSiqgXeJcX7"; // your api_key
const event = “level1” //your chose level
const { track_id} = queryString.parse(window.location.search); // url search
const remark = "remark"; // optional
const data = `track_id=${track_id}&event=${event}&remark=${remark}`; // optional
const sign = crypto.HmacSHA256(data, api_key).toString(); // HmacSHA256
fetch("https://cwallet.com/public/v1/giveaway/task/callback", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
track_id,
sign,
event,
remark,
}),
}).then(async (res) => {
console.log(await res.json());
});