Cloud executor: add credit (paid, x402)
executor_topupAdds prepaid USDC credit to a manager the executor runs; each sent operation is charged from it (gas × 1.5, at least the chain's minimum). Without payment the result is an error whose structuredContent is the x402 PaymentRequired: an x402 MCP client retries with _meta["x402/payment"]; any other client POSTs to payUrl and pays its HTTP 402. Anyone may pay; the credit only ever pays for this manager's operations and is not refunded.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chainId": "<chainId>",
"manager": "<manager>",
"amountUsdc": "<amountUsdc>"
},
"name": "executor_topup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | Yes | 8453 Base, 42161 Arbitrum, 130 Unichain, 1 Ethereum | |
| manager | Yes | The manager address | |
| amountUsdc | Yes | USDC to add (2–200 by default; executor_terms) |