#plugin #interface #plugin-interface

agave-geyser-plugin-interface

The Solana Geyser plugin interface

76 stable releases

new 2.2.4 Mar 24, 2025
2.2.0 Feb 15, 2025
2.1.7 Dec 23, 2024
2.1.4 Nov 27, 2024
0.1.0 Jan 30, 2024

#1 in #plugin-interface

Download history 3364/week @ 2024-12-04 3436/week @ 2024-12-11 2459/week @ 2024-12-18 1612/week @ 2024-12-25 2304/week @ 2025-01-01 3170/week @ 2025-01-08 3202/week @ 2025-01-15 2598/week @ 2025-01-22 2814/week @ 2025-01-29 2850/week @ 2025-02-05 5048/week @ 2025-02-12 7968/week @ 2025-02-19 9074/week @ 2025-02-26 8612/week @ 2025-03-05 8984/week @ 2025-03-12 7408/week @ 2025-03-19

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

Apache-2.0

660KB
14K 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

~24–33MB
~519K SLoC