pub async fn get_principal_achievements_with_metadata(
    principal: Principal
) -> Result<Vec<(Principal, Vec<Icrc7TokenMetadata>)>, String>
Expand description

Retrieves the achievements with metadata for a given principal across all issuers.

§Arguments

  • principal - The principal ID to fetch achievements for.

§Returns

  • Result<Vec<(Principal, Vec<Icrc7TokenMetadata>)>, String> - Returns a vector of tuples containing the issuer’s principal and a vector of token metadata owned by the given principal.

§Errors

  • Returns an error if there’s an issue communicating with any of the issuers or fetching metadata.