pub fn send_account_state(endpoint: MStr<Endpoint>, state: &AccountState)
Sends an account state to an endpoint handler.