Fees & Claims
Read pending and claimable fees, then withdraw credited balances.
Display trading fees, Creator revenue, Core buyback and network gas separately. Fees accrue in the Curve or Hook, then settlement credits FeeEscrow. Pending amounts are not yet wallet claimable.
FeeEscrow claims
Read balances for the actual recipient and asset with client.getClaimableBalance. Use client.prepareClaim({ asset }) for the connected recipient; omit amount to claim all, or supply a partial amount. Partner balances use getPartnerClaimableBalance and preparePartnerClaim.
FeeEscrow balances are per recipient and asset. Changing the Creator recipient does not move existing credits. Confirm the claim receipt and refresh the balance. Claims require gas and no ERC20 allowance.
Holder Fee Sharing
Production Classic uses its registered Holder Distributor. Resolve it with getLaunchpadHolderBinding({ publicClient, deployment }, token) and require binding.registered. Use the production arcMainnetLaunchpadDeployment from Quickstart.
Revenue collection, Epoch publication and wallet payment are separate steps. client.prepareHolderHarvest(distributor) collects available Escrow revenue and vested Core buyback tokens; it does not publish an Epoch or pay holders. Publication requires the authorized publisher.
Validate and claim
Obtain the beneficiary's allocation and Merkle proof from the project's production reward service. Construct a LaunchpadHolderAllocation with:
epochId: the on-chain Epoch number asbigint;0is valid. Never use a service database ID.account: the beneficiary.quoteAmountandcoinAmount: raw USDC and project-token amounts.proof: the Merkle proof for those exact amounts and beneficiary.
Read the Epoch and claimed/exclusion state using client.getHolderEpoch, client.hasHolderClaimed and client.isHolderExcluded. Require an existing, unexpired, non-rolled-over Epoch and validate the allocation against its root with launchpadHolderAllocationMatchesRoot.
Prepare client.prepareHolderClaim({ distributor, allocation }), send and confirm the receipt, then refresh the claimed state. Payment goes to allocation.account, including when another wallet pays gas. prepareHolderClaimMany supports claims against the same distributor; one invalid allocation reverts the batch.
See Hook settlement for post-graduation fees and Buyback and Vesting for the Core flow.
Last updated
Was this helpful?