#interface #plugin #plugin-interface

agave-geyser-plugin-interface

The Solana Geyser plugin interface

81 stable releases

2.2.7 Apr 6, 2025
2.2.6 Mar 29, 2025
2.2.0 Feb 15, 2025
2.1.20 Apr 14, 2025
0.1.0 Jan 30, 2024

#217 in Magic Beans

Download history 1752/week @ 2024-12-26 2284/week @ 2025-01-02 3386/week @ 2025-01-09 3109/week @ 2025-01-16 2618/week @ 2025-01-23 2936/week @ 2025-01-30 2731/week @ 2025-02-06 5630/week @ 2025-02-13 8223/week @ 2025-02-20 9078/week @ 2025-02-27 8629/week @ 2025-03-06 8919/week @ 2025-03-13 9035/week @ 2025-03-20 8650/week @ 2025-03-27 8347/week @ 2025-04-03 8602/week @ 2025-04-10

35,907 downloads per month
Used in 24 crates (4 directly)

Apache-2.0

555KB
12K SLoC

Solana

Solana Geyser Plugin Interface

This crate enables a plugin to be added into the Solana Validator runtime to take actions at the time of account updates or block and transaction processing; for example, saving the account state to an external database. The plugin must implement the GeyserPlugin trait. Please see the details of the geyser_plugin_interface.rs for the interface definition.

The plugin should produce a cdylib dynamic library, which must expose a C function _create_plugin() that instantiates the implementation of the interface.

The https://github.com/solana-labs/solana-accountsdb-plugin-postgres repository provides an example of how to create a plugin which saves the accounts data into an external PostgreSQL database.

More information about Solana is available in the Solana documentation.

Still have questions? Ask us on Stack Exchange

Dependencies

~25–35MB
~564K SLoC