A React Query hook for claiming incentives for a specific boost.
This hook handles the mutation for claiming boost incentives by a claimant address, requiring a valid signature for authorization.
See useMutation from react-query
useMutation
react-query
Parameters for claiming incentives
ID of the boost in format "chainId:coreAddress:index"
Optional address of the claimer
A React Query mutation object for handling the claim
const { mutate } = useClaimIncentives({ boostId: "11155111:0x378632819F39C74c4F56B1429E760739c5fb51b7:33", address: "0xabcd...ef12"});// Trigger the claimmutate({ signature: "0x123...", // Valid signature claimant: "0xabcd...ef12" // Address of claimant}); Copy
const { mutate } = useClaimIncentives({ boostId: "11155111:0x378632819F39C74c4F56B1429E760739c5fb51b7:33", address: "0xabcd...ef12"});// Trigger the claimmutate({ signature: "0x123...", // Valid signature claimant: "0xabcd...ef12" // Address of claimant});
A React Query hook for claiming incentives for a specific boost.
This hook handles the mutation for claiming boost incentives by a claimant address, requiring a valid signature for authorization.
See
useMutation
fromreact-query