MCP Tools
Tool Overview
Tool
Category
Purpose
x402.initialize_payment
Input Schema
{
"type": "object",
"properties": {
"amount": {
"type": "string",
"description": "Payment amount with unit (e.g., '0.1 SOL', '250 USDC')",
"pattern": "^\\d+(\\.\\d+)?\\s+(SOL|USDC|BONK)$"
},
"recipient": {
"type": "string",
"description": "Recipient wallet address or email identifier",
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$|^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
},
"purpose": {
"type": "string",
"description": "Human-readable payment description",
"maxLength": 500
},
"settlement_constraint": {
"type": "string",
"enum": ["immediate", "defer_until_approval", "scheduled"],
"default": "immediate",
"description": "Settlement timing constraint"
},
"idempotency_key": {
"type": "string",
"description": "Unique key for idempotent retries",
"maxLength": 256
},
"metadata": {
"type": "object",
"description": "Additional context for agent audit trail",
"additionalProperties": true
}
},
"required": ["amount", "recipient"]
}Example Request
Response
Error Responses
x402.authorize_transaction
Input Schema
Example Request
Response
Error Responses
x402.verify_settlement
Input Schema
Example Request
Response
Settlement States
State
Description
x402.query_balance
Input Schema
Example Request
Response
x402.estimate_fees
Input Schema
Example Request
Response
x402.cancel_payment
Input Schema
Example Request
Response
Error Codes Reference
Code
Description
Retry?
Best Practices
1. Idempotency Keys
2. Error Handling
3. Settlement Verification
4. Pre-flight Checks
Next Steps
Last updated