Prerequisites
- A custodial wallet with ETH for gas (faucet covers this).
- In
backedmode, the wallet must also hold enough public stablecoin to deposit. Infloatmode the operator mints directly, so a stablecoin balance in your wallet is not required. See mint modes.
Make the call
amount is a required decimal string in human units. The call blocks up to
~90 seconds for the receipt; if it returns PENDING, poll
GET /transactions/{id} until terminal.
What happens on-chain
- Backed mode
- Float mode
- Your wallet approves the commitment contract to spend the stablecoin.
- The wallet calls
commitDeposit: stablecoin is locked in the commitment, and the equivalent cAROUSD is minted to the wallet as an encrypted amount.
"100", the sandbox produces the FHE ciphertext and proof.
Verify
normal decrease and confidential increase by the
minted amount; in float mode only confidential moves.
Common failures
Next: send a private transfer or
redeem back to stablecoin.