SDK 2.1: platform toolkit + vesting engine
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.1.0 import these directly from @tokenops/sdk/fhe-airdrop; the hooks under @tokenops/sdk/fhe-airdrop/react are thin wrappers over the same methods.

v2.1.0 stable
SDK 2.1 is the stable release on the latest dist-tag. Install it with pnpm add @tokenops/sdk. The receipt-free and Safe create surface of /fhe-airdrop remains @beta.

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.