IntrospectionuseQuery
useFactoryInitCodeHash
Read the init-code hash the factory would use to CREATE2 an airdrop clone with the given params + gasFee.
Import
@tokenops/sdk/fhe-airdrop/reactReturn
{ data, isLoading, error, refetch }Lifecycle
IntrospectionDescription
Read the init-code hash the factory would use to CREATE2 an airdrop clone
with the given params + gasFee. Mirrors Solidity's getInitCodeHash
selector.
Signature
@tokenops/sdk/fhe-airdrop/react
ts
function useFactoryInitCodeHash(args?: UseFactoryInitCodeHashArgs): UseQueryResult<Hex, Error>;Parameters
Shape of the options object passed to the hook itself.
| Property | Type | Description |
|---|---|---|
| params | AirdropParams | |
| gasFee | bigint |
Example
@tokenops/sdk/fhe-airdrop/react · @example
tsx
const { data: initCodeHash } = useFactoryInitCodeHash({ params, gasFee });Pulled directly from the hook's TSDoc block — the same snippet your IDE shows on hover.
See also
Other Introspection hooks in airdrop:
useConfidentialAirdropFactoryImplementationRead the FHE-airdrop factory's current implementation() address — the LibClone target every new airdrop clone delegates to.useAirdropDeploymentBlockNumberRead the block number at which this airdrop clone was deployed.useAirdropDomainSeparatorRead the EIP-712 domain separator for this airdrop clone.useAirdropClaimTypehashRead the EIP-712 type hash for Claim(address recipient, bytes32 encryptedAmount).