solana_account_decoder::parse_account_data

Function parse_account_data

Source
pub fn parse_account_data(
    pubkey: &Pubkey,
    program_id: &Pubkey,
    data: &[u8],
    additional_data: Option<AccountAdditionalData>,
) -> Result<ParsedAccount, ParseAccountError>
👎Deprecated since 2.0.0: Use parse_account_data_v2 instead