Skip to content

To Get Profiles: getProfiles

This method gets a map of profile nonce as key and profile DID as value, associated with the identity derived from the private key and stored in the Polygon ID SDK.

Get Profiles

  Future<Map<BigInt, String>> getProfiles(
      {required String genesisDid, required String privateKey});

genesisDid is the unique ID of the identity whose profileNonce is 0.

privateKey is the key used to access all the sensitive info from the identity and also to realize operations like generating proofs.

It returns a map of . The returned profiles will come from the current env set with PolygonIdSdk.setEnv.