buildDepositTransfer.
buildRzfiClaimTransaction
- Send it from
userAddresson Base (8453). Any other sender reverts. - The sender pays the gas (about 250k on Base).
- It claims all unclaimed rZFI into the user’s Safe.
- Throws
No rZFI available to claimwhen there is nothing to claim. - Throws a retry message while Merkl’s reward tree is updating on-chain; retry in a few minutes.
Gas-sponsored alternative
To have Zyfai pay the gas instead, sign a hash rather than a transaction:prepareRzfiClaim(userAddress)returnsuserOpHashToSignandclaimableAmount.- Sign
userOpHashToSignwith the owner wallet (personal_signof the raw 32-byte hash). submitRzfiClaim(userAddress, signature)sends the claim and returnstxHash.
connectAccount() or forUser()).