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

Function create

  • create<T, Code, Alg, V>(__namedParameters): Promise<BlockView<T, Code, Alg, V>>
  • 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.

    • V extends Version

      CID version

    Parameters

    • __namedParameters: CreateInput<T, Code, Alg, V>

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

    • Defined in src/block.ts:225

Settings

Member Visibility

Theme

multiformats - v13.3.3
  • Loading...

Generated using TypeDoc