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 returns 201
as soon as the request is validated and queued; a background worker encrypts,
signs, and submits the mint (PENDING, txHash set) and confirmation usually
lands within a minute. Poll
GET /transactions/{id} until the status is
CONFIRMED or FAILED.
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", AroPay produces the FHE ciphertext and
proof after the request has already returned.
Verify
normal decrease and confidential increase by the
minted amount; in float mode only confidential moves.
Common failures
Problems with the request itself fail thePOST; problems executing on-chain
fail the transaction row later (status: "FAILED", with error and
errorCode). Either way, a failed mint moved no funds.
Next: send a private transfer or
redeem back to stablecoin.