Skip to main content
rZFI rewards accrue to the user’s Safe on Base and are claimed by the owner EOA. The claim is gas-sponsored and the SDK never signs: the backend prepares the transaction, your integration signs one hash in its own pipeline, and the backend submits it. Requires an authenticated user session (connectAccount() or forUser()).

Flow

  1. Call prepareRzfiClaim(userAddress). It returns userOpHashToSign and the claimableAmount (wei, 18 decimals).
  2. Sign userOpHashToSign with the owner EOA as a personal_sign of the raw 32-byte hash.
  3. Call submitRzfiClaim(userAddress, signature) within 5 minutes. It returns the on-chain txHash once the claim lands.

prepareRzfiClaim

Throws when there is no rZFI to claim. A conflict error means the Merkl reward tree is being updated on-chain; retry in a few minutes.

submitRzfiClaim

Rejects a signature that is not from the owner EOA (the prepared claim is kept, so you can sign again). Prepare again if the claim expired or reverted.

RzfiClaimResponse