• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • asset-credentials/src
  • PublicCredentials
  • fetchCredentialsFromChain

Function fetchCredentialsFromChain

  • fetchCredentialsFromChain(subject): Promise<IPublicCredential[]>
  • Retrieves from the blockchain the IPublicCredentials that have been issued to the provided AssetDid.

    This is the only secure way for users to retrieve and verify all the credentials issued to a given AssetDid.

    Parameters

    • subject: `did:asset:${string}:${string}.${string}:${string}` | `did:asset:${string}:${string}.${string}:${string}:${string}`

      The AssetDID of the subject.

    Returns Promise<IPublicCredential[]>

    An array of IPublicCredential as the result of combining the on-chain information and the information present in the tx history.

    • Defined in packages/asset-credentials/src/credentials/PublicCredential.chain.ts:216

Settings

Member Visibility

Theme

API Documentation
  • asset-credentials/src
    • AssetDids
    • PublicCredentials
      • EncodedPublicCredential
      • PublicCredentialEntry
      • PublicCredentialCreationOptions
      • fetchCredentialFromChain
      • fetchCredentialsFromChain
      • fromChain
      • fromClaim
      • getIdForCredential
      • toChain
      • verifyCredential
  • chain-helpers/src
  • config/src
  • credentials/src
  • did/src
  • jsonld-suites/src
  • legacy-credentials/src
  • sdk-js/src
  • types/src
  • utils/src