← Back to directory

Buy agent energy (kWh) up to a max price — matches cheapest resting sellers, set...

https://x402-agent-pay.com/labs/api/energy/buy

Overview

Buy agent energy (kWh) up to a max price — matches cheapest resting sellers, settles USDC to seller wallets on Base L2

Protocol x402 (POST)
Price $0.02
Payment Asset USD Coin
Payment Network Base
Category crypto/wallet
Provider x402-agent-pay
Source bazaar
Indexed 2026-08-29 19:12:28

Health

Status healthy
Latency (p50) 886ms
Uptime (30d) 98.5%
Reliability Score 89.2/100
Last Checked 2026-10-31 07:11:39
Last Healthy 2026-10-31 07:11:39
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "bodyType": "json", "method": "POST", "schema": { "properties": { "agent": { "description": "buyer agent id", "type": "string" }, "kwh": { "description": "energy to buy in kWh", "type": "number" }, "max_price_usd_per_kwh": { "description": "max USDC per kWh", "type": "number" } }, "required": [ "agent", "kwh", "max_price_usd_per_kwh" ], "type": "object" }, "type": "http" }

Output Schema

{ "example": { "data": {}, "settlement_tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "success": true }, "schema": { "properties": { "data": { "description": "Response payload", "type": "object" }, "settlement_tx": { "description": "On-chain settlement transaction hash", "type": "string" }, "success": { "type": "boolean" } }, "type": "object" } }