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

Retrieves the achievements (token IDs) for a given principal across all issuers.

§Arguments

  • principal - The principal ID to fetch achievements for.

§Returns

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

§Errors

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