IntrospectionuseQuery
useFactoryInitCodeHash
Read the init-code hash the factory would use to CREATE2 a manager clone with the given token + deployer (+ optional immutable flags).
Import
@tokenops/sdk/fhe-vesting/reactReturn
{ data, isLoading, error, refetch }Lifecycle
IntrospectionDescription
Read the init-code hash the factory would use to CREATE2 a manager clone
with the given token + deployer (+ optional immutable flags). Mirrors
Solidity's getInitCodeHash / getInitCodeHashWithOptions selector.
Signature
@tokenops/sdk/fhe-vesting/react
ts
function useFactoryInitCodeHash(args?: UseFactoryInitCodeHashArgs): UseQueryResult<Hex, Error>;Parameters
Shape of the options object passed to the hook itself.
| Property | Type | Description |
|---|---|---|
| token | Address | |
| deployer | Address | |
| splitEnabled | boolean | |
| pausableEnabled | boolean |
Example
@tokenops/sdk/fhe-vesting/react · @example
tsx
const { data: initCodeHash } = useFactoryInitCodeHash({ token, deployer });Pulled directly from the hook's TSDoc block — the same snippet your IDE shows on hover.
See also
Other Introspection hooks in vesting:
useConfidentialVestingFactoryImplementationRead the FHE-vesting factory's current implementation() address — the LibClone target every new manager clone delegates to.useManagerDeploymentBlockNumberRead the manager clone's immutable DEPLOYMENT_BLOCK_NUMBER — the block at which the factory deployed this clone via LibClone.useRoleConstantsRead all eight AccessControl role hashes off the manager in one fan-out.