Files
solana/accountsdb-plugin-interface
mergify[bot] 0cd45400ca Add docs for notifying transactions via plugin (#22097) (#22178)
* Added documentations for streaming transactions via plugin

* Updated comments for transaction info

* Updated doc on transaction format

* Removed a white space

* Apply suggestions from code review from Tyera

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
(cherry picked from commit 135af08b8b)

Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com>
2021-12-30 05:10:32 +00:00
..
2021-12-22 11:41:03 -06:00
2021-09-30 14:26:17 -07:00

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