Get top-up payment instructions
top_upRetrieve x402 payment requirements to add USDC to an AmpleRun balance by specifying amount_micro. Returns network, contract, treasury, amount, and EIP-712 domain for signing.
Instructions
Get what it takes to top up the AmpleRun USDC balance by amount_micro with x402: the payment requirements (network, USDC contract, treasury payTo, amount, EIP-712 domain). A wallet signs them as an EIP-3009 transferWithAuthorization and repeats POST /api/v1/billing/x402/top-up with the PAYMENT-SIGNATURE header (@amplerun/sdk does this with its x402 option). This server holds no wallet, so it pays nothing; an operator who configures AMPLERUN_MCP_WALLET_KEY_FILE and allows spending lets it pay.
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": {
"amount_micro": "<amount_micro>"
},
"name": "top_up"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount_micro | Yes | Top-up amount in micro-USDC, e.g. "5000000" for 5 USDC. |