Skip to main content

wallet_account_from_account_events

Function wallet_account_from_account_events 

Source
pub fn wallet_account_from_account_events(
    events: Vec<Bound<'_, PyDict>>,
    calculate_account_state: bool,
) -> PyResult<WalletAccount>
Expand description

Constructs a WalletAccount from a list of Python dict events.

ยงErrors

Returns a PyErr if an event cannot be converted or the input events list is empty.