MCP Server Examples
Practical examples demonstrating how to use the MCP Wallet Server tools in your applications.
Advanced Workflow
Combine multiple tools for complex operations:
Multi-Step Workflow
// Step 1: Check balance before sending
{
"method": "tools/call",
"params": {
"name": "mcpwallet_get_balance",
"arguments": { "address": "0x..." }
}
}
// Step 2: Send payment if sufficient balance
{
"method": "tools/call",
"params": {
"name": "mcpwallet_send_transaction",
"arguments": { "to": "0x...", "amount": "0.1" }
}
}
// Step 3: Access paid content
{
"method": "tools/call",
"params": {
"name": "mcpwallet_browse_with_payment",
"arguments": { "url": "https://paid.example.com" }
}
}