https://github.com/blockworks-foundation/bankingstageerrorstrackingsidecar
This is a side car which will track banking stage errors from validator over geyser.
https://github.com/blockworks-foundation/bankingstageerrorstrackingsidecar
Last synced: about 1 month ago
JSON representation
This is a side car which will track banking stage errors from validator over geyser.
- Host: GitHub
- URL: https://github.com/blockworks-foundation/bankingstageerrorstrackingsidecar
- Owner: blockworks-foundation
- Created: 2023-11-22T14:29:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-07T10:46:52.000Z (6 months ago)
- Last Synced: 2025-03-28T09:11:10.545Z (about 2 months ago)
- Language: Rust
- Size: 694 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BankingStage Sidecar
This is a sidecar application for the BankingStage project. It is responsible for importing data from the Solana blockchain into the PostgreSQL database.
Data is retrieved via Solana RPC and Geysers gRPC API.## Database Configuration
### Database Roles
* `bankingstage_sidecar` - write access to the database for the sidecar importer
* `bankingstage_dashboard` - read-only access to the database for the dashboard web application
* `query_user` - group for read-only access to the database intended for human user interaction with database```sql
CREATE USER some_user_in_group_query_user PASSWORD 'test';
GRANT query_user TO some_user_in_group_query_user;
```### Configure sidecar PostgreSQL connection
export PG_CONFIG="host=localhost dbname=the_banking_stage_db user=some_user_in_group_query_user password=test sslmode=disable"### Database Schema
The database schema is defined in the [migration.sql](migration.sql) file.
For new database installations start with the [init-database.sql](init-database.sql) file.
Required is a PostgreSQL database (tested version 15).