solana-accountsdb-plugin-interface

Crates.iosolana-accountsdb-plugin-interface
lib.rssolana-accountsdb-plugin-interface
version1.10.2
sourcesrc
created_at2021-10-21 02:52:29.418581
updated_at2022-03-14 17:54:19.830859
descriptionThe Solana AccountsDb plugin interface.
homepagehttps://solana.com/
repositoryhttps://github.com/solana-labs/solana
max_upload_size
id468249
size10,446
(anza-team)

documentation

https://docs.rs/solana-accountsdb-plugin-interface

README

Solana

Solana AccountsDb Plugin Interface

This crate enables an AccountsDb plugin to be plugged into the Solana Validator runtime to take actions at the time of each account update; for example, saving the account state to an external database. The plugin must implement the AccountsDbPlugin trait. Please see the detail of the accountsdb_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 solana-accountsdb-plugin-postgres crate provides an example of how to create a plugin which saves the accounts data into an external PostgreSQL databases.

More information about Solana is available in the Solana documentation.

Still have questions? Ask us on Discord

Commit count: 24985

cargo fmt