Every testnet faucet method, as a hook.
Filter by lifecycle (where in the flow), TanStack shape (how to wire it), or encryptor dependency. Import path is @tokenops/sdk/testnet-faucet/react.
Write · 2
Headline writes — submit a tx through the connected wallet.
Read · 9
Plaintext on-chain reads. TanStack Query envelope, cached + refetched.
useConfidentialBalanceRead the encrypted confidential balance handle (euint64 ciphertext) for account — defaults to the connected wallet.
useQueryuseUnderlyingBalanceRead the plaintext underlying TokenopsTestToken (TTT) balance for account (defaults to the connected wallet), in TTT 18-decimal base units.
useQueryuseFaucetRateRead the decimal-conversion rate between underlying and confidential units: 1 CTTT 6-decimal unit is backed by rate TTT 18-decimal base units (10^(18-6) = 10^12).
useQueryuseFaucetDecimalsRead the decimals of the confidential token (CTTT) — 6.
useQueryuseUnderlyingDecimalsRead the decimals of the underlying token (TTT) — 18.
useQueryuseUnderlyingTokenAddressRead the underlying TokenopsTestToken (TTT) address backing the CTTT wrapper.
useQueryuseInferredTotalSupplyRead the wrapper's inferred total supply: underlying held in custody divided by rate, an upper bound on the confidential total supply, in CTTT 6-decimal units.
useQueryuseMaxTotalSupplyRead the max confidential total supply the wrapper supports (type(uint64).max).
useQueryuseFaucetMetadataRead consolidated faucet metadata in a single hook — both tokens' name/symbol/decimals/address, the conversion rate, and the maxTotalSupply ceiling.
useQuery