<aside> 💡 Permissionless badge: no need to provide these apis Backend-authorized badges: both Check API and Claim API are required. Gifted badges: only Check API is required.
</aside>
method: GET
url: {{pathname}}/check?badge={{badgeContractAddress}}&recipient={{walletAddress}}
contentType: data/json
responseSchema
// eligible
{
code: 1,
message: "success",
eligibility: true
}
// not eligible
{
code: 0,
message: "why the recipient is not eligible",
eligibility: false
}
// error
// http code is not 200
method: GET
url: {{pathname}}/claim?badge={{badgeContractAddress}}&recipient={{walletAddress}}
contentType: data/json
responseSchema
// success
{
code: 1,
message: "success",
tx: ...
}
// failure
{
code: 0,
message: "some msg",
}
// error
// http code is not 200
Please ensure the provided API supports the cross-origin requirements.
scroll.io domain: requests originating from scroll.io are permitted.