Pay Merchant (sends real USDC)
pay_merchantSend USDC on Base to any merchant payout address (the payoutAddress field shown by discover_merchants — NOT the merchantId). Use this whenever the user has confirmed they want to buy, purchase, pay, or send money for something. Gasless for you — Coal pays gas. Returns the on-chain tx hash. Auto-uses the wallet key from the X-Coal-Agent-Key header in your Claude config (no need to ask the user for a key). Max $5 per tx. After this succeeds for a digital product, immediately call download_product with the returned tx hash to give the user their file.
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": {
"to": "<to>",
"amount": "<amount>"
},
"name": "pay_merchant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Merchant payout address (0x...) | |
| amount | Yes | Amount in USD (USDC). Max $5 per tx. | |
| reason | No | Why this payment is being made (free-form, for logs) | |
| sessionId | No | Optional checkout session ID to confirm against | |
| agentPrivateKey | No | Your wallet private key. Optional if X-Coal-Agent-Key header is set. |