ReaduseQuery
useFactoryCustomFee
Read the per-creator fee override set on the factory for creator.
Import
@tokenops/sdk/fhe-airdrop/reactReturn
{ data, isLoading, error, refetch }Lifecycle
ReadDescription
Read the per-creator fee override set on the factory for creator. Returns
{ enabled: false, gasFee: 0n } when no override exists.
Signature
@tokenops/sdk/fhe-airdrop/react
ts
function useFactoryCustomFee(args?: UseFactoryCustomFeeArgs): UseQueryResult<CustomFee, Error>;Parameters
Shape of the options object passed to the hook itself.
| Property | Type | Description |
|---|---|---|
| creator | Address | Address whose per-creator fee override to read. Hook is disabled until set. |
Example
@tokenops/sdk/fhe-airdrop/react · @example
tsx
const { data: customFee } = useFactoryCustomFee({ creator });
if (customFee?.enabled) { ... use customFee.gasFee ... }Pulled directly from the hook's TSDoc block — the same snippet your IDE shows on hover.
See also
Other Read hooks in airdrop:
useFactoryDefaultGasFeeRead the factory-wide default per-claim gas fee (in wei) — applied to new airdrop clones at deployment when the creator has no custom override.useFactoryFeeCollectorRead the factory's current fee collector address — the account authorized to call withdrawGasFee on each deployed airdrop clone.useAirdropTokenRead the airdrop clone's immutable TOKEN.useAirdropGasFeeRead the airdrop clone's immutable per-claim gas fee (in wei).