How vusalabdurahmanovx/cryptopayments works
CryptoPayments is a watch-only BSC USDT receiver API. An application submits an idempotent invoice request; the API allocates a unique HD address, the scanner finds and verifies finalized token transfers, and the invoice status and optional signed webhook reflect confirmed totals. The map follows the sampled runtime wiring; unsampled store details and the contract implementation are not inferred beyond README claims.
Main entry points: main.go Service Runtime · store.go Invoice & Transfer Store · http.go HTTP API · webhook.go Webhook Dispatcher
Components 12
Invoice API
- HTTP API
http.go - Amount Parsing
amount.go - Runtime Config
config.go - Service Runtime
main.go
Address Allocation
- HD Address Derivation
wallet.go
Chain Scanning
- BSC JSON-RPC
rpc.go - Transfer Scanner
scanner.go
Payment Ledger
- Invoice & Transfer Store
store.go
Webhook Delivery
- Webhook Dispatcher
webhook.go
Other components
- Merchant App
- BSC RPC Provider
- Merchant Webhook
Connections 17
- Merchant App → HTTP API: submits requests
README.md - Service Runtime → Runtime Config: loads settings
main.go - Service Runtime → Invoice & Transfer Store: opens database
main.go - Service Runtime → BSC JSON-RPC: validates chain
main.go - Service Runtime → Transfer Scanner: starts scanner
main.go - Service Runtime → Webhook Dispatcher: starts delivery
main.go - Service Runtime → HTTP API: serves routes
main.go - HTTP API → Amount Parsing: parses amount
http.go - HTTP API → Invoice & Transfer Store: creates and reads
http.go - HTTP API → BSC JSON-RPC: gets start block
http.go - Invoice & Transfer Store → HD Address Derivation: derives address
store.go - Transfer Scanner → BSC JSON-RPC: fetches blocks and logs
scanner.go - Transfer Scanner → Invoice & Transfer Store: loads and applies scans
scanner.go - BSC JSON-RPC → BSC RPC Provider: sends JSON-RPC
rpc.go - Webhook Dispatcher → Invoice & Transfer Store: reads and updates outbox
webhook.go - Webhook Dispatcher → Merchant Webhook: posts signed events
webhook.go - Invoice & Transfer Store → Webhook Dispatcher: persists event outbox