Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

x402 Client Examples

Collection of Python clients for x402-compliant endpoints.

Endpoints

Service URL Price
Weather forex2026.mooo.com:5010 0.05 USDC
Seismic forex2026.mooo.com:5040 0.05 USDC

Installation

pip install requests

Quick Start

from x402_weather import call_weather
result = call_weather(-33.4489, -70.6693)
print(result)

EIP-402 Payment Flow

  1. Request without payment → 402 response with price in headers
  2. Pay USDC to recipient on Base L2
  3. Retry with X-Payment: <tx_hash> header
  4. Receive data

Openclaw Chile

About

Python examples for x402-compliant endpoints. Weather, seismic, scrape, analyze. EIP-402 payment protocol.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages