• Preparing search index...
  • The search index is not available
multiformats - v13.3.3
  • multiformats
  • block
  • decode

Function decode

  • decode<T, Code, Alg>(__namedParameters): Promise<BlockView<T, Code, Alg>>
  • Type Parameters

    • T

      Logical type of the data encoded in the block

    • Code extends number

      multicodec code corresponding to codec used to encode the block

    • Alg extends number

      multicodec code corresponding to the hashing algorithm used in CID creation.

    Parameters

    • __namedParameters: DecodeInput<T, Code, Alg>

    Returns Promise<BlockView<T, Code, Alg>>

    • Defined in src/block.ts:167

Settings

Member Visibility

Theme

multiformats - v13.3.3
  • Loading...

Generated using TypeDoc