Skip to content

Off-chain indexer and REST API for TradeFlow RWA protocol.

License

Notifications You must be signed in to change notification settings

lifewithbigdamz/TradeFlow-API

 
 

Repository files navigation

TradeFlow-API: Off-Chain Infrastructure

Docker Stellar License

TradeFlow-API is the backend service layer for the TradeFlow protocol. It bridges the on-chain Soroban contracts with off-chain Real-World Asset (RWA) data.

🏗 Architecture

The service performs three critical functions:

  1. Event Indexing: Listens to TradeFlow-Core contract events (Minting, Repayment) and indexes them into PostgreSQL.
  2. Risk Engine: Processes PDF invoices and assigns risk scores (0-100) signed by our oracle key.
  3. Auth: Manages user sessions via wallet signatures (SIWE - Sign In With Ethereum/Stellar style).

🐳 Infrastructure

We use Docker for a consistent development environment.

services:
  api:
    build: .
    ports: ["3000:3000"]
  db:
    image: postgres:15
    environment:
      POSTGRES_DB: tradeflow
 

About

Off-chain indexer and REST API for TradeFlow RWA protocol.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.9%
  • Dockerfile 8.1%