Practical examples of how to use the Elsa X402 API for real blockchain execution with automatic payment handling.
Execute a real token swap on Base network using the Elsa pipeline system with automatic X402 payment handling.
Three optional routing parameters are accepted by both get_swap_quote and execute_swap. Use them when the sending wallet holds no ETH for gas, or to bridge straight into your Polymarket deposit wallet (the only recipient other than the sender that the backend accepts).
Analyze wallet holdings across multiple chains and get comprehensive portfolio data.
Check airdrop eligibility and claim ELSA tokens from a specific tranche using the pipeline system.
Find every market resolving in the next 48 hours where the favorite is priced between roughly 80% and 85%, on either side, with a tight order book — then place a small order on the favorite. Leave search out: a keyword resolves to a single Polymarket tag and would silently shrink the universe to one topic.
/api/endpoint_name/api/elsa/endpoint_nameA fun AI-powered app that roasts your crypto wallet. Analyzes your portfolio holdings, transaction history, and DeFi positions using the Elsa X402 API, then generates a humorous roast of your crypto decisions.
These examples demonstrate real blockchain execution using the Elsa X402 API with automatic USDC or ELSA token micropayments on Base network.