---
updatedAt: 2026-04-22T18:44:05.000Z
agentTools:
  projectIndex: https://fuul.readme.io/llms.txt
---

# Generate Claim Signature

Generates signed claim messages that allow users to claim their rewards on-chain through the FuulManager smart contract.

## How Claiming Works

This endpoint is part of a multi-step claim flow:

1. **Call this endpoint** with the user's address and amounts to claim
2. **Receive signatures** containing claim parameters (amount, currency, deadline, proofs)
3. **User calls FuulManager.claim()** on the blockchain with the signature data
4. **Funds transfer** from FuulProject contract to user's wallet

## When to Use This Endpoint

- User wants to claim accumulated rewards on-chain
- Building a claim UI/flow in your application
- Verifying claimable amounts before initiating on-chain transaction
- Generating proofs for multi-currency claims

## When NOT to Use This Endpoint

- Just checking claimable totals (use GET /v1/claim-checks/totals instead)
- User has no claimable rewards (check totals first)
- Claiming points/credits (this is for on-chain token claims only)

## Important Constraints

- **Signatures Expire**: Each signature has a `deadline` timestamp (typically 24 hours)
- **Gas Required**: User needs native token (ETH, MATIC, etc.) for gas to execute claim on-chain
- **Network Specific**: Signatures are valid only for the specified `chain_id`
- **One-Time Use**: Once claimed on-chain, signature cannot be reused
- **Multi-Currency**: May return multiple signatures if user has claims in different tokens

## Claim Flow Best Practices

```
1. GET /v1/claim-checks/totals → Show user claimable amounts
2. POST /v1/claim-checks/claim → Generate signatures
3. User approves transaction in wallet
4. Call FuulManager.claim(signatures) on-chain
5. Transaction confirmed → Rewards transferred
```

## Smart Contract Integration

- **Contract**: FuulManager (see https://docs.fuul.xyz/protocol/smart-contracts)
- **Function**: `claim(ClaimData[] calldata claims)`
- **Source Code**: https://github.com/fuul-protocol/protocol-contracts

## Common Errors

- **400 Bad Request**: Invalid user identifier format
- **404 Not Found**: Project not found or user has no claimable rewards
- **403 Forbidden**: API key lacks required permissions

## Related Endpoints

- GET /v1/claim-checks/totals - Check claimable amounts before claiming
- GET /v1/payouts/totals/{userIdentifier} - View all payout data


# OpenAPI definition

````json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Fuul API",
    "version": "1.0.0",
    "description": "# Fuul API\n\nFuul is a Web3 growth and affiliate marketing platform that enables projects\nto track referrals, manage affiliate programs, and distribute rewards across\nmultiple blockchain networks (EVM, Solana, XRPL, Sui).\n\n## Core Concepts\n\n### Events\nEvents track user actions (conversions) that trigger rewards. Send events\nwhen users complete valuable actions like trades, deposits, or purchases.\n\n### Affiliates\nAffiliates are partners who promote your project. They receive unique codes\nand earn commissions on referred user activity.\n\n### Referral Codes\nEnd-users can generate referral codes to share with friends. Both referrer\nand referee can earn rewards.\n\n### Payouts\nRewards earned through the affiliate/referral program. Can be claimed\non-chain or tracked as points.\n\n## Authentication\n\n### API Keys\nAPI keys are bound to a single project. Include in the Authorization header:\n```\nAuthorization: Bearer YOUR_API_KEY\n```\n\n## Multi-Chain Support\n\nFuul supports multiple blockchain networks. When identifying users, specify:\n- `user_identifier`: The wallet address, email, or opaque UUID\n- `user_identifier_type`: `evm_address` | `solana_address` | `sui_address` | `xrpl_address` | `stellar_address` | `email` | `uuid`\n\n## Smart Contracts\n\nFuul is an on-chain affiliate protocol. The API works in conjunction with\nsmart contracts deployed across multiple EVM networks.\n\n### Contract Architecture\n\n- **FuulManager**: Central contract that handles attributions and claims.\n  Deployed once per network.\n\n- **FuulFactory**: Creates new FuulProject contracts for each project.\n\n- **FuulProject**: Per-project contracts that hold deposited funds and\n  execute payouts. Address returned when creating a project.\n\nFor contract addresses per network, see:\nhttps://docs.fuul.xyz/protocol/smart-contracts\n\n### Claim Flow\n\n1. User earns rewards through referral/affiliate activity\n2. Call `GET /v1/claim-checks/totals` to see claimable amounts\n3. Call `POST /v1/claim-checks/claim` to get a signed claim message\n4. User submits the signature to `FuulManager.claim()` on-chain\n5. Funds are transferred from FuulProject to user's wallet\n\n### Resources\n\n- [Smart Contract Addresses](https://docs.fuul.xyz/protocol/smart-contracts)\n- [Protocol Contracts Source Code](https://github.com/fuul-protocol/protocol-contracts)\n- [Subgraphs](https://docs.fuul.xyz/protocol/subgraphs)\n\n## Rate Limits\n\n- Standard endpoints: 100 requests/minute\n- Batch endpoints: 10 requests/minute\n- Leaderboard endpoints: 60 requests/minute (cached for 1 minute)\n"
  },
  "servers": [
    {
      "url": "https://api.fuul.xyz/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Unauthorized - Missing or invalid API key",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "missing_key": {
                "summary": "Missing API key",
                "value": {
                  "statusCode": 401,
                  "message": "Missing authorization header",
                  "error": "Unauthorized"
                }
              },
              "invalid_key": {
                "summary": "Invalid API key",
                "value": {
                  "statusCode": 401,
                  "message": "Invalid API key",
                  "error": "Unauthorized"
                }
              }
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Too Many Requests - Rate limit exceeded",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "rate_limit": {
                "summary": "Rate limit exceeded",
                "value": {
                  "statusCode": 429,
                  "message": "Rate limit exceeded. Maximum 100 requests per minute.",
                  "error": "Too Many Requests"
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "IdentifierType": {
        "type": "string",
        "enum": [
          "evm_address",
          "solana_address",
          "sui_address",
          "xrpl_address",
          "stellar_address",
          "email",
          "uuid"
        ],
        "example": "evm_address",
        "description": "The type of identifier being used for identifying the user."
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "integer",
            "description": "HTTP status code",
            "example": 400
          },
          "message": {
            "type": "string",
            "description": "Human-readable error message",
            "example": "Invalid user identifier format"
          },
          "error": {
            "type": "string",
            "description": "Error type or category",
            "example": "Bad Request"
          }
        },
        "description": "Standard error response structure returned by all endpoints"
      }
    }
  },
  "paths": {
    "/v1/claim-checks/claim": {
      "post": {
        "operationId": "generateClaimSignature",
        "summary": "Generate Claim Signature",
        "description": "Generates signed claim messages that allow users to claim their rewards on-chain through the FuulManager smart contract.\n\n## How Claiming Works\n\nThis endpoint is part of a multi-step claim flow:\n\n1. **Call this endpoint** with the user's address and amounts to claim\n2. **Receive signatures** containing claim parameters (amount, currency, deadline, proofs)\n3. **User calls FuulManager.claim()** on the blockchain with the signature data\n4. **Funds transfer** from FuulProject contract to user's wallet\n\n## When to Use This Endpoint\n\n- User wants to claim accumulated rewards on-chain\n- Building a claim UI/flow in your application\n- Verifying claimable amounts before initiating on-chain transaction\n- Generating proofs for multi-currency claims\n\n## When NOT to Use This Endpoint\n\n- Just checking claimable totals (use GET /v1/claim-checks/totals instead)\n- User has no claimable rewards (check totals first)\n- Claiming points/credits (this is for on-chain token claims only)\n\n## Important Constraints\n\n- **Signatures Expire**: Each signature has a `deadline` timestamp (typically 24 hours)\n- **Gas Required**: User needs native token (ETH, MATIC, etc.) for gas to execute claim on-chain\n- **Network Specific**: Signatures are valid only for the specified `chain_id`\n- **One-Time Use**: Once claimed on-chain, signature cannot be reused\n- **Multi-Currency**: May return multiple signatures if user has claims in different tokens\n\n## Claim Flow Best Practices\n\n```\n1. GET /v1/claim-checks/totals → Show user claimable amounts\n2. POST /v1/claim-checks/claim → Generate signatures\n3. User approves transaction in wallet\n4. Call FuulManager.claim(signatures) on-chain\n5. Transaction confirmed → Rewards transferred\n```\n\n## Smart Contract Integration\n\n- **Contract**: FuulManager (see https://docs.fuul.xyz/protocol/smart-contracts)\n- **Function**: `claim(ClaimData[] calldata claims)`\n- **Source Code**: https://github.com/fuul-protocol/protocol-contracts\n\n## Common Errors\n\n- **400 Bad Request**: Invalid user identifier format\n- **404 Not Found**: Project not found or user has no claimable rewards\n- **403 Forbidden**: API key lacks required permissions\n\n## Related Endpoints\n\n- GET /v1/claim-checks/totals - Check claimable amounts before claiming\n- GET /v1/payouts/totals/{userIdentifier} - View all payout data\n",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "userIdentifier",
                  "userIdentifierType"
                ],
                "properties": {
                  "userIdentifier": {
                    "type": "string",
                    "example": "0xBfBAdD58B65B54D1a5cEa6d9c730fbd57c182d32",
                    "description": "User identifier"
                  },
                  "userIdentifierType": {
                    "$ref": "#/components/schemas/IdentifierType",
                    "description": "Type of identifier"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Claim checks"
        ],
        "responses": {
          "200": {
            "description": "List of claim checks that can be claimed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "description": "Unique identifier of the claim check"
                      },
                      "project_address": {
                        "type": "string"
                      },
                      "to": {
                        "type": "string"
                      },
                      "currency": {
                        "type": "string"
                      },
                      "currency_type": {
                        "type": "integer"
                      },
                      "amount": {
                        "type": "string"
                      },
                      "reason": {
                        "type": "integer"
                      },
                      "token_id": {
                        "type": "string"
                      },
                      "deadline": {
                        "type": "integer"
                      },
                      "proof_without_project": {
                        "type": "string"
                      },
                      "proof": {
                        "type": "string"
                      },
                      "signatures": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "single_currency": {
                    "summary": "Claim signatures for USDC on Ethereum",
                    "value": {
                      "signatures": [
                        {
                          "currency_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
                          "currency_chain_id": "1",
                          "currency_name": "USDC",
                          "amount": "50000000",
                          "nonce": "1",
                          "signature": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1b"
                        }
                      ],
                      "expires_at": 1704067200
                    }
                  },
                  "multiple_currencies": {
                    "summary": "Claim signatures for multiple currencies",
                    "value": {
                      "signatures": [
                        {
                          "currency_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
                          "currency_chain_id": "1",
                          "currency_name": "USDC",
                          "amount": "50000000",
                          "nonce": "1",
                          "signature": "0x1234567890abcdef..."
                        },
                        {
                          "currency_address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
                          "currency_chain_id": "1",
                          "currency_name": "WETH",
                          "amount": "25000000000000000",
                          "nonce": "1",
                          "signature": "0xabcdef1234567890..."
                        }
                      ],
                      "expires_at": 1704067200
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid user identifier"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Project not found"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    }
  }
}
````