ReaduseQuery
useAirdropGasFee
Read the airdrop clone's immutable per-claim gas fee (in wei).
Import
@tokenops/sdk/fhe-airdrop/reactReturn
{ data, isLoading, error, refetch }Lifecycle
ReadDescription
Read the airdrop clone's immutable per-claim gas fee (in wei). Attached as
msg.value by claim() automatically when the consumer doesn't pass
value explicitly.
Signature
@tokenops/sdk/fhe-airdrop/react
ts
function useAirdropGasFee(options: AirdropHookOptions): UseQueryResult<bigint, Error>;Example
@tokenops/sdk/fhe-airdrop/react · @example
tsx
const { data: gasFee } = useAirdropGasFee({ address: airdropAddress });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.useFactoryCustomFeeRead the per-creator fee override set on the factory for creator.useAirdropTokenRead the airdrop clone's immutable TOKEN.