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

Function fetchCredentialFromChain

  • fetchCredentialFromChain(credentialId): Promise<IPublicCredential>
  • Retrieves from the blockchain the IPublicCredential that is identified by the provided identifier.

    This is the only secure way for users to retrieve and verify a credential.

    Parameters

    • credentialId: `0x${string}`

      Credential ID to use for the query.

    Returns Promise<IPublicCredential>

    The 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:137

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