# Energy Research Hub V3 integration examples

The V3 flow is:

1. Call `GET /v3/opportunities` without payment.
2. Select the returned `opportunity_id`.
3. Call `POST /v3/dispatch-plan` or `POST /v3/market-brief`.
4. Decode the HTTP 402 `Payment-Required` header.
5. Sign the EIP-3009 payment authorization for USDC on Base Mainnet.
6. Repeat the identical request with the payment signature.
7. Receive the paid result and `payment_receipt`.

Prices:

- Dispatch plan: `0.02 USDC`
- Market brief: `0.05 USDC`

## Examples

- `v3-typescript.ts` — typed TypeScript buyer flow
- `v3-typescript.mjs` — directly executable Node.js buyer flow
- `v3-python.py` — Python buyer flow
- `SKILL.md` — agent-readable integration skill
- `agentcash-v3.md` — AgentCash integration
- `coinbase-agentkit-v3.md` — Coinbase AgentKit integration
- `openclaw-mcp-v3.md` — OpenClaw and MCP integration

V2 remains available during the compatibility period and returns deprecation and sunset headers.
