Claim a Boost
How to claim a Boost for an end user
Once an end user has completed a boosted action, the boost reward can be claimed by submitting a transaction signed by the end user on the chain of the reward token.
Prerequisites for claiming a boost include:
- the boost factory contract ABI, which can be found here
- a signature from the Boost API vouching that a specific end user has completed the action for a currently active boost
Getting a boost completion signature
Before submitting the claim transaction, a signature verifying the completion of the specific boost action by the end user must be requested from the /boosts/get-signature endpoint.
While the raw signature
is available in the response, the compressedBytes
parameter of the response can be passed directly to the claim transaction below. Additionally, the required protocol fee
to claim the boost is available in the response for convenience.
Claiming a boost reward
The following example demonstrates a claim of a reward in $DEGEN token on Base using the viem
package and the compressedBytes
param from the previous section:
Batching claims
For applications where batching of user claims is preferable, use the /boosts/get-signature-batch endpoint to query multiple signatures at once:
Note that individual signature request failures fail silently for the /boosts/get-signature-batch endpoint, resulting in the failing signature requests being omitted from the response. To get error information on a specific signature request failure, use the singular /boosts/get-signature endpoint.