Badge
Overview of Badge API endpoints
Last updated
Overview of Badge API endpoints
Last updated
The Badge API provides endpoints for managing game badges (ERC-721 tokens) in the system. These endpoints allow you to create, mint, transfer, burn, and query badge information.
- Create a new badge
- Create a badge using a signature
- Mint a badge to a recipient
- Remove a badge
- Remove a badge using a signature
- Burn a badge
- Transfer a badge to another address
- Get badge balance for an address
- List badges owned by an address
- Get detailed information about a badge
- Get total count of badges
- Get badge information by ID
- Get the owner of a badge
- Check if a badge is burnt
All endpoints require HMAC authentication using the hmacAuth('user')
middleware. Make sure to include the following headers in your requests:
apikey
: Your API key
signature
: HMAC signature
timestamp
: Current timestamp
Most endpoints require a chain ID to be specified. This can be done either in the request body or through the checkChainId
middleware.