Claiming Boosts

Claiming boosts in V2 follows a two-step process:

  1. Generate a valid signature using the boost API
  2. Execute an on-chain claim transaction using the Boost SDK

Getting the Signature

First, get the claim signature by passing the boostId and transaction hash to the /signatures endpoint:

const { data } = await axios.get('https://api-v2.boost.xyz/signatures', {
  params: {
    boostId: `${chainId}:${boost.id}`,
    txHash,
  }
});

Claiming the Boost

The signature endpoint returns an array of signatures, one for each available incentive. You can claim these using either claimIncentive (called by claimant) or claimIncentiveFor (claim on behalf of claimant):