Crates.io | miraland-geyser-plugin-interface |
lib.rs | miraland-geyser-plugin-interface |
version | 1.19.2 |
source | src |
created_at | 2023-05-02 22:53:08.251198 |
updated_at | 2024-11-08 06:04:38.209913 |
description | The Miraland Geyser plugin interface. |
homepage | https://solanalabs.com/ |
repository | https://github.com/miraland-labs/miraland |
max_upload_size | |
id | 854973 |
size | 17,691 |
This crate enables an plugin to be added into the Miraland 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 detail 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 databases.
More information about Miraland is available in the Miraland documentation.
Still have questions? Ask us on Stack Exchange