deposit_to_gateway
Deposit USDC once to prepay for zero-knowledge proof generation, enabling low-cost nanopayments instead of per-proof on-chain transactions.
Instructions
Deposit USDC into Circle Gateway on Arc, so later proofs can be paid for with nanopayments (pay_on: "arc-testnet-nano").
Do this ONCE, not per proof. The deposit is the only on-chain step and it costs gas; every payment drawn against the balance costs almost none. Paying with "arc-testnet-nano" against an empty Gateway balance is refused.
Requires PAYMENT_PRIVATE_KEY -- the buyer signs authorizations with it and never sends a transaction per payment.
RETURNS: whether a deposit was made, its transaction hash, and the Gateway balance afterwards (in USDC's smallest units, so 1000000 is one USDC).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | How much USDC to deposit, in whole USDC as a decimal string, e.g. "5" or "0.5". | |
| rpc_url | No | Arc RPC. Defaults to https://rpc.testnet.arc.io. | |
| at_least | No | Skip the deposit if the Gateway balance already covers this, in USDC's smallest units (1000000 = 1 USDC). Omitted deposits unconditionally. |