For the complete documentation index, see llms.txt. This page is also available as Markdown.

🎟️Get Claim Checks

Claim checks are signed vouchers that allow users to claim their rewards onchain. This step is the same regardless of whether you're claiming on EVM, SVM, or Stellar.

Use Fuul.getClaimableChecks from @fuul/sdk:

import { Fuul, UserIdentifierType } from '@fuul/sdk';

const claimChecks = await Fuul.getClaimableChecks({
  user_identifier: '0x1234...',
  user_identifier_type: UserIdentifierType.EvmAddress, // evm_address | solana_address | xrpl_address | stellar_address | email
});

Each claim check carries its own id (a uuid) alongside the voucher fields (project_address, to, currency, currency_type, amount, reason, token_id, deadline, proof, signatures). Use it to correlate a signed voucher with the rows returned by getClaimChecks, to deduplicate, or to reference a single check when closing.

Stellar projects. Claim checks for a stellar_address return currency_type: 0 (Stellar asset). Each signatures entry is a base64 XDR SorobanAuthorizationEntry pre-signed by Fuul, and each check carries an extra signers array with the signer G… addresses. Pass them to @fuul/sdk-stellar as shown in Stellar Claiming.

You can also call the claim check endpoint on the Fuul API directly.

getClaimableChecks was introduced in SDK version 7.8.0. Upgrade if you're on an earlier version. The per-check id was added in 7.44.0.

Get claim totals

To show users their claimed and unclaimed balances without building a full transaction (API reference):

import { Fuul, UserIdentifierType } from '@fuul/sdk';

const totals = await Fuul.getClaimCheckTotals({
  user_identifier: '0x1234...',
  user_identifier_type: UserIdentifierType.EvmAddress, // or UserIdentifierType.SolanaAddress | UserIdentifierType.StellarAddress
});
// Returns { claimed: [...], unclaimed: [...] } grouped by currency.
// Every row carries a `status`: 'claimed' in claimed[], 'open' or 'closed' in unclaimed[].

const readyToClaim = totals.unclaimed.filter((row) => row.status === 'closed');
const stillAccumulating = totals.unclaimed.filter((row) => row.status === 'open');

Filtering totals

Both filters are optional query params. They narrow which claim checks are summed and do not change the response shape. An unknown value returns 400.

Param
Values
Effect

status

claimed, unclaimed, open, closed

Return only rows in that state. unclaimed returns open and closed rows together, with claimed[] empty

reason

affiliate_payout, end_user_payout, agency_payout

Sum only one earning type: commission for referring others, rebate on the user's own activity, or an agency's share

closed in totals is the same state that getClaimChecks and every other endpoint report as unclaimed. The totals endpoint uses unclaimed for the umbrella instead.

Totals (getClaimCheckTotals)

Everywhere else (getClaimChecks, GET /claim-checks)

open

open

closed

unclaimed

unclaimed (param only: open + closed)

—

claimed

claimed

Rows carry no reason field, so to show commission and rebate separately call the method twice:

The two reason calls sum to the unfiltered figure.

The per-row status and the status filter were added in SDK 7.46.0. The reason filter was added in 7.47.0. An older SDK drops reason before sending the request and returns merged totals with no error, so check the SDK version if a reason filter appears to do nothing.

The public claim-checks endpoints are rate limited at 100 requests per minute per project, user and route. Exceeding it returns 429.

Claim check aggregation (open checks)

Some projects enable claim check aggregation, which batches multiple rewards into a single on-chain transaction per currency. This is optional and configured per project.

When aggregation is enabled, claim checks start with status open — they accumulate rewards over time without being signed yet. New rewards for the same user, currency, and reason are merged into the existing open check by summing amounts and extending deadlines. This reduces on-chain transactions from one per reward event to one per currency/reason combination.

To finalize an open check and make it claimable, call POST /claim-checks/close:

closeClaimChecks returns the same ClaimResponse shape as getClaimableChecks, so the per-check id is available from either method. You can also pass claim_check_ids to close a specific subset instead of everything open.

After closing, the check transitions from open to unclaimed and receives its signature — at which point it's returned by getClaimableChecks and ready to claim onchain.

If aggregation is not enabled for a project, claim checks are signed immediately at creation time and are returned as unclaimed from the start. No close call is needed.

List claim checks by status

To inspect a user's checks without generating vouchers, use getClaimChecks. This is the SDK method behind GET /claim-checks:

Status
Meaning

ClaimCheckStatus.Open ('open')

Aggregating rewards, not signed yet. Call closeClaimChecks to finalize

ClaimCheckStatus.Unclaimed ('unclaimed')

Signed and ready to claim onchain

ClaimCheckStatus.Claimed ('claimed')

Already redeemed onchain

Each row returns id, currency_address, currency_chain_id, currency_name, currency_decimals, reason, amount, status, deadline_seconds, and created_at. Note that these are metadata rows, not vouchers: they carry no proof or signatures. Use getClaimableChecks when you need to submit a transaction.

Next steps

Once you have your claim checks, follow the guide for your chain:

Last updated