useEcdsaDomain
Read an ECDSA instance's CLAIM_TYPEHASH, domain separator and ERC-5267 domain in one round trip - the three deployment-verification reads nobody wants one at a time (same call as useAirdropWindow).
@tokenops/sdk/fhe-airdrop/react{ data, isLoading, error, refetch }Description
Read an ECDSA instance's CLAIM_TYPEHASH, domain separator and ERC-5267
domain in one round trip - the three deployment-verification reads nobody
wants one at a time (same call as useAirdropWindow).
This is the round-trip confirmation, not the common path. For building
a signature, use the module-level CLAIM_TYPEHASH / EIP712_DOMAIN_NAME /
EIP712_DOMAIN_VERSION constants and skip the RPC. Use this hook to
confirm a deployed instance really was initialized with the domain you
expect, on the chain you think it is on, before a signing service starts
issuing signatures against it.
All three are bytecode/deploy constants, so staleTime: Infinity.
Signature
function useEcdsaDomain(args: UseEcdsaDomainArgs): UseQueryResult<EcdsaDomain, Error>;Example
const { data } = useEcdsaDomain({ address: airdropAddress });
const built = data?.claimTypehash === CLAIM_TYPEHASH;Pulled directly from the hook's TSDoc block — the same snippet your IDE shows on hover.
See also
Other Read hooks in airdrop v2:
useAirdropTokenRead the ERC-7984 token an airdrop instance distributes.useAirdropWindowRead an airdrop instance's claim-window snapshot in one round trip.useAirdropGasFeeRead the per-claim ETH fee (wei) an instance charges; 0n on a fee-free campaign.useMerkleRootRead a MerkleConfidentialAirdrop instance's currently published root.