Shield public USDC
Deposit constraints, exact allowance, proof preparation, and spendable private credit.
On this page
Review and precision
The Shield form takes a positive decimal USDC amount and parses it as integer micro-USDC. It checks actual wallet funds, per-deposit limits, and remaining pool capacity. Allowance is read for the wallet and the configured Gloam pool. Review should reflect live settings, which the service rechecks during execution.
import { parseUnits } from "viem";
// The app also validates the user-entered amount and rejects excess decimals.
const exampleAmountWei = parseUnits("12.345678", 6); // 12345678nExecution sequence
- Review USDC and live limits
- build bound deposit intent
- generate proof in browser
- Journal operation
- exact allowance approval if needed
- simulate pool call
- wallet sends deposit
- Receipt and commitment checks
- finalize encrypted journal
- refresh private balance
The app checks that proof output and calldata bind the intended asset, amount, and commitment. If allowance is below the amount, it requests exactly the amount needed and requires successful approval before the deposit. The wallet pays applicable gas in native HYPE. A rejected or unconfirmed allowance stops the Shield submission. A submitted deposit is not spendable until verified.
Observable data
The deposit and wallet address are public. Shielding creates a private note for later supported spends; it cannot erase the originating public transaction. For an uncertain deposit, use Refresh and retain the journal and backup before attempting another operation.
See balances and transaction recovery.

CogniTech