#!/bin/sh # Free, no wallet: X402 Router discovery from the shell. R=https://router-production-ab89.up.railway.app curl -s -X POST $R/route -H 'content-type: application/json' -d '{"q":"weather","chain":"Base"}' # best match + top 3 curl -s "$R/api/endpoints?q=weather&chain=Base&limit=5" # search LIVE endpoints curl -s "$R/status/endpoint?url=https://example.com/x402/endpoint" # reliability history of one endpoint curl -si -X POST $R/route/paid -H 'content-type: application/json' -d '{"q":"weather"}' | grep -i '^payment-required' # the 402 (no charge)