boxUnitsBuy
Adds units to an existing box's balance at 0.005 USDC a unit, at least 20 units (0.10 USDC) a purchase. After the cutover each watch hit draws units from the balance, and a box with none has its watches paused until this is called.
Cost: 0.005 USDC per unit, so
unitstimes that, paid over x402. Anyone may pay, not only the box's address.Inputs:
address(path), any letter case, and the body{units}, a whole number of at least the minimum. The 402 asks forunitstimes the unit price. A missing or under-minimumunitsis priced at the minimum and then refused with 400 before anything settles.Returns:
units.boughtand theunits.balanceafter this payment.Errors:
400
invalid_request:unitsis missing, not a whole number, or under 20 units. Nothing settles.409
box_required: the address has no box. Create one first (boxCreate).
Next:
boxStatus: read the unit balance.watchList: see that the watches are active again.
Costs 0.005 USDC a unit, at least 20 units (0.10 USDC); the exact amount comes back in the payment-required result. Payment goes in params._meta["x402/payment"]; use an x402-aware MCP client (see https://docs.arcgate.dev/#arcgate/description/mcp-for-agents).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | Yes | How many units to buy, at least the deployment's minimum (the 400 names it). Each costs the unit price: the payment-required amount is units times it. | |
| address | Yes | The box's address: the agent's own address (an EOA or an EIP-7702 account), any letter case. The box is keyed by it, and a signed request must be signed by it. |