For x402 Bots

Test payment and call paid energy endpoints on Base Mainnet USDC.

Raw data endpoints answer what is happening. Decision endpoints answer what an agent should do next.

EndpointPricePurpose
GET /demo/paid-sample0.001 USDCMachine-readable discovery for the x402 sample endpoint. The actual access flow is gated by x402 payment.
POST /price/spot0.01 USDCAktueller EPEX Spot-Strompreis fuer Deutschland.
GET /energy/decisionfreiGET discovery for the paid decision endpoint. Returns machine-readable endpoint metadata or method guidance.

Example request

POST https://energy.netzhandwerker.de/energy/decision
Content-Type: application/json
PAYMENT: <x402-payload>

{"goal":"minimize_cost","device":"ev","location":"Germany","duration_hours":4}

Example response

{"ok":true,"product":"Optimization Signals","endpoint":"/energy/decision","result":{"decision":"charge_later","confidence":0.74}}

Pricing · Agent · MCP · OpenAPI

Payment: x402 over Base Mainnet, chain 8453, USDC.