• Preparing search index...
  • The search index is not available
API Documentation
  • API Documentation
  • credentials/src
  • CType
  • fromChain

Function fromChain

  • fromChain(encoded): Pick<CTypeChainDetails, "creator">
  • Decodes the CType details returned by api.query.ctype.ctypes().

    Parameters

    • encoded: AccountId | Option<AccountId>

      The data from the blockchain.

    Returns Pick<CTypeChainDetails, "creator">

    An object indicating the CType creator.

    • Defined in packages/credentials/src/ctype/CType.chain.ts:93
  • fromChain(encoded): CTypeChainDetails
  • Decodes the CType details returned by api.query.ctype.ctypes().

    Parameters

    • encoded: CtypeCtypeEntry | Option<CtypeCtypeEntry>

      The data from the blockchain.

    Returns CTypeChainDetails

    An object indicating the CType creator and createdAt block.

    • Defined in packages/credentials/src/ctype/CType.chain.ts:102

Settings

Member Visibility

Theme

API Documentation
  • asset-credentials/src
  • chain-helpers/src
  • config/src
  • credentials/src
    • Attestation
    • CType
      • Schemas
      • CTypeChainDetails
      • CTypeLoader
      • ICTypeDetails
      • fetchFromChain
      • fromChain
      • fromProperties
      • getHashForSchema
      • getIdForSchema
      • hashToId
      • idToChain
      • idToHash
      • isICType
      • newCachingCTypeLoader
      • serializeForHash
      • toChain
      • verifyCTypeMetadata
      • verifyClaimAgainstNestedSchemas
      • verifyClaimAgainstSchema
      • verifyDataStructure
      • verifyObjectAgainstSchema
      • verifyStored
    • DataIntegrity
    • DelegationNodeUtils
    • Holder
    • Issuer
    • KiltAttestationProofV1
    • KiltCredentialV1
    • KiltRevocationStatusV1
    • Presentation
    • Types
    • Verifier
    • DelegationNode
    • W3C_CREDENTIAL_CONTEXT_URL
    • W3C_CREDENTIAL_TYPE
    • W3C_PRESENTATION_TYPE
  • did/src
  • jsonld-suites/src
  • legacy-credentials/src
  • sdk-js/src
  • types/src
  • utils/src