2.0 RC docsView 1.x docs
Airdrop v2 · Clients

Vanilla TS clients for airdrop v2.

Deploy, claim, and delegate compliance without React - the same five classes the hooks wrap.

Node services, indexers, and admin scripts on v2.0.0-rc.1 import these directly from @tokenops/sdk/fhe-airdrop; the hooks under @tokenops/sdk/fhe-airdrop/react are thin wrappers over the same methods.

v2.0.0-rc.1 release candidate
The API is frozen and later candidates carry fixes only, except the receipt-free and Safe create surface of /fhe-airdrop, which is @beta. Published on the next dist-tag; latest stays on 1.6.0 until 2.0.0.

Shared client options

  • gasHeadroomPercent on every config pads each write's gas estimate (default 25%, clamped to the EIP-7825 cap). Writes that take an argument object also accept a per-call gas, sent as is. The factory's positional admin setters take it as a trailing argument after account. See Gas headroom.
  • Every write refuses a wallet whose chain is not the public client's with WalletChainMismatchError before estimating. The airdrop contracts share their addresses on mainnet and Sepolia, so a mismatched pair would otherwise send to the wrong chain.
  • The factory resolves its address from DEPLOYED_ADDRESSES on chain 1 and chain 11155111; pass address only for a local deployment. See Contracts.