5 Commits
Author SHA1 Message Date
Ben Troutner 0b20e1b111 Add multi-facilitator support with Dexter integration
- Add Dexter as secondary facilitator option (no API keys required)
- Create FACILITATORS config with CDP and Dexter settings
- Update server middleware to support multiple facilitators
- Add PRIMARY_FACILITATOR environment variable
- Create example client for Dexter payments
- Document Dexter features: 600K+ free tx/month, gas sponsored

Dexter has ~50% market share and requires no authentication,
making it an ideal backup/secondary facilitator option.
2026-03-23 16:18:55 -07:00
Ben Troutner e3a0c5a35e Merge branch 'master' into bot-unstable 2026-03-23 12:06:26 -07:00
Ben Troutner 69b8471456 Add code examples link to AI discovery files
- Add psf-js-examples repository link to llms.txt
- Add externalDocs reference to openapi.json
- Make code examples prominent for AI agents and developers

The psf-js-examples repo contains working JavaScript code for:
- Querying balances and UTXOs
- Broadcasting transactions
- Working with SLP tokens
- Handling x402 payments
2026-03-23 12:04:26 -07:00
Ben Troutner ed02fa4027 Add AI-friendly API discovery endpoints
- Add /llms.txt for LLM/AI agent documentation
- Add /openapi.json for OpenAPI spec
- Update server.js to serve new endpoints
- Document all API endpoints with examples and payment info

These endpoints help AI agents discover and use the API correctly,
including x402 payment requirements.
2026-03-23 12:02:15 -07:00
Ben Troutner b613b06b60 Switch to CDP facilitator with CAIP-2 network format
- Update default facilitator URL to Coinbase CDP
- Change network format from 'base' to CAIP-2 'eip155:8453'
- Add documentation for CDP credential requirements
- Fix network variable scope issue in x402.js

This enables auto-registration in the x402 Bazaar discovery layer
when the first payment is processed through the CDP facilitator.
2026-03-23 10:09:13 -07:00