Agent Examples

Working code for AI agents to pay via x402 and get structured country data.

Quick Start

pip install requests
python3 demo_xrplme_paid.py --country thailand

Files

Pricing

Standard: 1 XRP (XRPL) / 1 USDC (Solana)
AI:       5 XRP (XRPL) / 7 USDC (Solana)

Schema

Structured v1.1 responses with sources, facts, synthesis, and on-chain TXID proof.

Full schema: /schemas/country-data-v1.1.json