https://<domain>/<serverpath>?address=<userAddress>
type RequestPayload = {
// error can be optionally provided when result is false
error?: {
// this is the error code you defined to provider more context (e.g. UNKNOWN_ERROR, 0)
code: string | number;
// this is the error message you defined to provider more context (e.g. Unknown error occurred)
message: string;
};
data: {
// whether the user has done the task
result: boolean;
};
};
If you wish to set up an on-chain Quest, for example, trading volume = $100 on the Micro3 platform, you need to provide this API to Micro3.
The parameter address=<user address> will always be included in the API Endpoint.
https://micro3.io/?address=<useraddress>volume=1&ttrade=1
](https://micro3.io/?address=<useraddress>&volume=1&ttrade=1)Success:
{
"data":
"result”: true
}
}
Failed
{
"error": {
"code": 0,
"message": "error message"
},
"data":
"result”: false
}
}