2.0 RC docsView 1.x docs
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.
Testnet Faucet 2.0 · Client@tokenops/sdk/testnet-faucet

TestnetFaucetClient

Testnet-only faucet on Sepolia (11155111), plus local Anvil (31337) with an explicit address. Open-mints two test tokens: plain 18-decimal TTT and backed 6-decimal confidential CTTT (ERC-7984). Mints take public plaintext bigint amounts: no encryptor, no Zama peer, no roles, no pause. The config takes publicClient, walletClient?, address?, chainId?, telemetry? and gasHeadroomPercent?; on mainnet or any other chain the constructor throws UnsupportedChainError with a method and a hint.

Construct

Headless TS — non-React consumers (Node, Vite, server workers). React hosts use the per-hook surface; same method names, wallet/public-client wiring, and no encryptor.

@tokenops/sdk/testnet-faucet
ts
import { TestnetFaucetClient } from "@tokenops/sdk/testnet-faucet";

const client = new TestnetFaucetClient({
  publicClient,
  walletClient,
  // address optional: resolved from publicClient.chain.id
});

Methods

Write · 2

Read · 8