Claiming Incentives
The Boost V2 Docs are under active development and will be subject to changes.
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.