TransactionProcessingCallback

Trait TransactionProcessingCallback 

Source
pub trait TransactionProcessingCallback: InvokeContextCallback {
    // Required method
    fn get_account_shared_data(
        &self,
        pubkey: &Pubkey,
    ) -> Option<(AccountSharedData, Slot)>;

    // Provided method
    fn inspect_account(
        &self,
        _address: &Pubkey,
        _account_state: AccountState<'_>,
        _is_writable: bool,
    ) { ... }
}
๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Expand description

Runtime callbacks for transaction processing.

Required Methodsยง

Source

fn get_account_shared_data( &self, pubkey: &Pubkey, ) -> Option<(AccountSharedData, Slot)>

๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.

Provided Methodsยง

Source

fn inspect_account( &self, _address: &Pubkey, _account_state: AccountState<'_>, _is_writable: bool, )

๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.

Implementorsยง