Last updated 4 months ago
0x123...
GET /v3/smartbalance/getbalance HTTP/1.1 Host: Accept: */*
Balance retrieved successfully
{ "netBalance": "100.50", "balances": { "10": "50.25", "42161": "50.25" } }
POST /v3/smartbalance/getquote HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 94 { "walletAddress": "0x123...", "outputNetwork": 42161, "amount": "50.00", "type": "debit", "limit": 100 }
Quote generated successfully
{ "quote": { "amount": "50.00", "fee": "0.50", "total": "50.50" } }
POST /v3/smartbalance/computesolution HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 82 { "walletAddress": "0x123...", "amount": "50.00", "type": "debit", "outputNetwork": 42161 }
Solution computed successfully
{ "withdrawalPlan": { "network": 42161, "amount": "50.00" }, "tokenToClaim": { "address": "0x123...", "amount": "50.00" }, "transactions": { "claim": { "encodedData": "0x...", "targetContractAddress": "0x..." }, "withdrawal": { "encodedData": "0x...", "targetContractAddress": "0x..." } }, "signatures": { "paymaster": "0x...", "withdrawal": "0x..." } }