Polkadot Apps
    Preparing search index...
    • Extract the content hash digest from a CIDv1 string and return it as a 0x-prefixed hex string — the preimage key format used by the host API.

      Accepts CIDv1 with any hash algorithm supported by the Bulletin Chain (blake2b-256, sha2-256, keccak-256).

      Parameters

      Returns `0x${string}`

      0x-prefixed hex string of the 32-byte hash digest.

      If the CID is not CIDv1 or uses an unsupported hash algorithm.