https://github.com/0xnineteen/simple-geyser
hello-world geyser plugin to stream accounts and transactions from a solana node
https://github.com/0xnineteen/simple-geyser
accounts geyser plugin simple solana transactions
Last synced: 6 months ago
JSON representation
hello-world geyser plugin to stream accounts and transactions from a solana node
- Host: GitHub
- URL: https://github.com/0xnineteen/simple-geyser
- Owner: 0xNineteen
- Created: 2022-09-06T01:34:44.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-25T13:41:56.000Z (about 1 year ago)
- Last Synced: 2025-04-02T05:11:28.520Z (6 months ago)
- Topics: accounts, geyser, plugin, simple, solana, transactions
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 16
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
- src/lib.rs: entrypoint
- src/plugin.rs: main plugin code
- to run: `cargo build && solana-test-validator -r --geyser-plugin-config config.json`
- note: make sure `solana-test-validator --version` matches the `Cargo.toml` version
- sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.10/install)" -- to install a specific version...
what you should see:
```
⠐ Initializing...
Identity: CRCJ7zzd5SSmA8AJ9gbtv4QrYZ2zw4YKWa1MCDw1NTf2
Genesis Hash: 9VRik4BdeNEoZdvAabsinfDjfXVLj2rCpCcLe6grVdem
Version: 2.0.10
Shred Version: 32893
Gossip Address: 127.0.0.1:1024
TPU Address: 127.0.0.1:1027
JSON RPC URL: http://127.0.0.1:8899
WebSocket PubSub URL: ws://127.0.0.1:8900
⠙ 00:00:02 | Processed Slot: 2 | Confirmed Slot: 2 | Finalized Slot: 0 | Full Snapshot Slot: - | Incremental Snapshot Slot: - | Transactions: 1 | ◎499.999995000 account SysvarRecentB1ockHashes11111111111111111111 updated at slot 3!
account CRCJ7zzd5SSmA8AJ9gbtv4QrYZ2zw4YKWa1MCDw1NTf2 updated at slot 3!
account SysvarS1otHistory11111111111111111111111111 updated at slot 3!
account SysvarS1otHashes111111111111111111111111111 updated at slot 4!
account SysvarC1ock11111111111111111111111111111111 updated at slot 4!
account CRCJ7zzd5SSmA8AJ9gbtv4QrYZ2zw4YKWa1MCDw1NTf2 updated at slot 4!
```...
reference impls:
- https://github.com/clockwork-xyz/clockwork/tree/main/plugin
- https://github.com/solana-labs/solana-accountsdb-plugin-postgres/tree/master