How satelink-protocol/satelink_network works
Satelink is a pay-per-call Polygon RPC gateway and derived trading-intelligence service, sharing metered credits across both products. The main workflow is discover pricing or service details, make a request, satisfy an x402 challenge or fund credits by deposit, then receive an RPC or intelligence result. The map also includes workload discovery, persistence, and MCP access. Connections are limited to README statements and indexed or excerpted source references; several route-level implementations were not sampled, so those links are omitted.
Main entry points: server.js API startup · engine.js Intelligence API · deposit_listener.js USDT deposit watcher · routes.js Legacy route assembly
Components 22
Access and products
- Service discovery
apps/api/src/routes/well_known_x402.js - RPC gateway
apps/api/src/gateway/routes/rpc.js - Intelligence API
apps/api/src/intelligence/engine.js - Metric computation
apps/api/src/intelligence/compute.js - Market connectors
apps/api/src/intelligence/connectors.js - MCP RPC tools
apps/mcp-server/src/rpc.mjs
Payments and credits
- x402 payments
apps/api/src/payments/x402/settlement.js - CDP facilitator
- USDT deposit watcher
apps/api/src/services/deposit_listener.js - Credit service
apps/api/src/billing/credit_service.mjs - Polygon network
Workload services
- Workload acquisition
apps/api/src/workloads/workload_acquisition_engine.js - Demand buffer
apps/api/src/queue/demand_buffer.js - Operations engine
apps/api/src/core/operations_engine.js
Runtime and storage
- API startup
server.js - Database migrations
apps/api/src/db/migrate.js - Postgres adapter
apps/api/src/database/pg_adapter.js - PostgreSQL
- Legacy route assembly
core/routes.js - Operations adapter
core/ops_engine_adapter.js - Legacy schema
core/schema.js
Other components
- Machine or human
Connections 19
- Machine or human → Service discovery: discovers service
README.md - Machine or human → RPC gateway: requests RPC
README.md - Machine or human → Intelligence API: requests metrics
README.md - Machine or human → MCP RPC tools: uses MCP tools
README.md - Intelligence API → Metric computation: uses computation
apps/api/src/intelligence/engine.js - Intelligence API → Market connectors: uses connectors
apps/api/src/intelligence/engine.js - Machine or human → x402 payments: pays challenge
README.md - x402 payments → CDP facilitator: settles through
README.md - Machine or human → Polygon network: deposits USDT
README.md - Polygon network → USDT deposit watcher: provides deposit events
README.md - USDT deposit watcher → Credit service: credits account
apps/api/src/services/deposit_listener.js - Workload acquisition → Demand buffer: enqueues workloads
apps/api/src/workloads/workload_acquisition_engine.js - API startup → Database migrations: runs migrations
server.js - API startup → USDT deposit watcher: starts watcher
server.js - API startup → Postgres adapter: initializes database
server.js - Postgres adapter → PostgreSQL: accesses
apps/api/src/database/pg_adapter.js - Legacy route assembly → Operations adapter: creates engine
core/routes.js - Operations adapter → Operations engine: wraps engine
core/ops_engine_adapter.js - Legacy route assembly → Legacy schema: uses schema
core/routes.js