prepare_credit_purchase
Prepare a credit purchase, without paying yet. 40=$1.99,100=$4.99,400=$14.99,1000=$29.99.
Gives an account-bound pay_url. An authorized x402 wallet client POSTs to that URL,
reads PAYMENT-REQUIRED, then retries with PAYMENT-SIGNATURE for USDC on Base mainnet.
Never send wallet private keys to this tool. Browser Stripe checkout is also available.
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": {
"pack_id": "<pack_id>",
"idempotency_key": "<idempotency_key>"
},
"name": "prepare_credit_purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack_id | Yes | ||
| idempotency_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||