Claiming Incentives
Under Construction The V2 Protocol, SDK, and these docs are under active development. You can find the latest testnet deployments here
In prerelease Currently the SDK and protocol only support Sepolia. Public API’s are stable, but could still change before our initial release. If you experience any bugs, please open a Github issue
API
claimIncentive
Claims one incentive from a boost. Must be called by claimant.
To learn how to encode the claimDataPayload
, see the full Claim Example.
Parameters
A bigint
representing the boost ID.
A bigint
representing the incentive ID. The incentive ID is the index of the incentive in the incentives
array.
An address representing the claimant of the incentive.
A hexadecimal string containing the encoded claim data payload.
Optional parameters to pass to the underlying writeContract
method. Checkout wagmi’s documentation for more information. address
, args
, functionName
, abi
are handled for you under the hood.
Returns
claimIncentiveFor
Claim an incentive for a Boost on behalf of another user.
To learn how to encode the claimDataPayload
, see the full Claim Example.
Parameters
A bigint
representing the boost ID.
A bigint
representing the incentive ID. The incentive ID is the index of the incentive in the incentives
array.
The address of the referrer (if any). Use zero address if no referrer.
A hexadecimal string containing the encoded claim data payload.
The address of the user eligible for the incentive payout
Optional parameters to pass to the underlying writeContract
method. Checkout wagmi’s documentation for more information. address
, args
, functionName
, abi
are handled for you under the hood.