vault_pay
Pay an x402 402 Payment Required using a vaulted wallet without exposing its private key; return the payment header to retry the request, with owner approval outside allowed payees or daily limits.
Instructions
Pay an x402 "402 Payment Required" from a vaulted wallet whose key is never returned to you. Pass the 402 reply's PAYMENT-REQUIRED header (or the decoded JSON, or a v1 402 body) as payment_required; you get back the header to send when you retry the same request. USDC only, on Base, Base Sepolia, Solana and Solana devnet. Payments inside the owner's rules (allowed payees, a daily limit) are signed at once; anything else waits for the owner to approve, and if they have not answered yet, call again with the same payment to keep waiting.
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": {
"entry_id": "<entry_id>",
"payment_required": "<payment_required>",
"purpose": "<purpose>"
},
"name": "vault_pay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | Yes | Why this payment is needed. The owner sees it if they are asked. | |
| entry_id | Yes | Vault entry holding the wallet. | |
| accept_index | No | Which offer in accepts[] to pay, when the merchant makes more than one. | |
| payment_required | Yes | The PAYMENT-REQUIRED header value (base64), or the decoded object. |