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

πŸͺ™Claim Flow Integration

If your program distributes token rewards, users need a way to claim them. This section covers what to display and how to wire up the claiming flow.

Show claimable balances

Before asking users to submit a transaction, show them what they have available to claim (API reference):

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

const totals = await Fuul.getClaimCheckTotals({
  user_identifier: '0x1234...',
  user_identifier_type: 'evm_address',
});

Returns: claimed and unclaimed arrays grouped by currency.

Pending acceptance payouts

Some programs require users to explicitly accept payouts before they become claimable. This is useful for compliance flows or programs where users must agree to terms before receiving rewards.

Endpoint
Description
Reference

GET /v1/payouts/pending-acceptance

Check if a user has payouts waiting for acceptance

POST /v1/payouts/pending-acceptance/accept

Accept pending payouts β€” body: { recipient_address, signature, message }

After accepting, the payouts become claimable through the regular claim check flow.

Fetch claim checks

When the user is ready to claim, fetch their signed vouchers (API reference):

Pass these directly to the Fuul contract claim function. See the chain-specific guides for the full transaction:

Show payout status history

Show the lifecycle status of a user's payouts per conversion β€” when each payout was created, approved, and its current status (API reference):

Returns: date, currency, conversion_name, payout_status, payout_status_details per movement.

Show onchain claim history

Show a user's completed onchain claim transactions with their transaction hash (API reference):

Returns: results (array), total_count, next_page.

Claim on behalf of users

Projects can submit claim transactions on behalf of users β€” tokens land in the user's wallet with no action required from them. See the EVM Claiming guide for implementation details.

Public claimable rewards

To display unclaimed reward balances without requiring an API key or SDK initialization, use the public claimable rewards endpoint. See Public Claimable Rewards.

Admin: rewards payouts overview

These endpoints are for project dashboards β€” they return claim check data across all users in the project.

Endpoint
Description
Reference

GET /v1/claim-checks/rewards-payouts

List all claim checks with filtering by status, date range, and user

GET /v1/claim-checks/rewards-payouts/totals

Aggregated totals grouped by currency

Use status=claimed or status=unclaimed to filter, and from_date/to_date for date ranges. Use source_user_identifier + source_user_identifier_type to filter by email or UUID users (mutually exclusive with deposit-address filters). Filter by payout type with reason: affiliate_payout | end_user_payout | agency_payout.

Last updated