The StarkInsure Payment Service is a Spring Boot microservice handling all payment flows for the StarkInsure DeFi insurance platform. Running on port 5004, it enables secure premium payments, claim payouts, and liquidity pool transactions on StarkNet.
View Swagger Docs | StarkNet API Reference
- StarkNet Native Payments:
- 🟣 STRK token processing
- 🔷 ETH bridging (L1→L2)
- 💱 Stablecoin conversions (USDC/USDT)
- Claim Automation:
- Pragma Oracle-triggered payouts
- Multi-sig dispute resolution
- Risk Pool Features:
- LP reward distribution (Cairo smart contract integration)
- Reinsurance capital allocation
| Component | Technology |
|---|---|
| Framework | Spring Boot 3.2 |
| StarkNet SDK | StarkNet.js + starkli |
| Oracle | Pragma (StarkNet-native) |
| Database | PostgreSQL + TimescaleDB |
- Java 17+
- PostgreSQL 15+ with TimescaleDB
- StarkNet devnet (for testing)
- Clone the repo:
git clone https://github.com/CRYPTOInsured-Foundation/starkinsure-payment-service.git cd starkinsure-payment-service - Configure environment:
cp src/main/resources/application.example.yml src/main/resources/application.yml
- Edit application.yml:
server: port: 5004 spring: datasource: url: jdbc:postgresql://localhost:5432/starkinsure_db stripe: api-key: your-stripe-key
- Edit application.yml:
- Build and run:
mvn spring-boot:run
- Fork the repository
- Create your feature branch:
git checkout -b feat/your-feature- Commit changes following Conventional Commits
- Push to the branch
- Open a Pull Request