Blobs.toVersionedHashes
Compute Blob Versioned Hashes from a list of Blobs.Blobs
.
Imports
Named
import { Blobs } from 'ox'
Examples
import { Blobs } from 'ox'
import { kzg } from './kzg'
const blobs = Blobs.from('0xdeadbeef')
const versionedHashes = Blobs.toVersionedHashes(blobs, { kzg })
Definition
function toVersionedHashes<blobs, as>(
blobs: blobs | Blobs<Bytes.Bytes> | Blobs<Hex.Hex>,
options: toVersionedHashes.Options<as>,
): toVersionedHashes.ReturnType<as>
Source: src/Blobs.ts
Parameters
blobs
- Type:
blobs | Blobs<Bytes.Bytes> | Blobs<Hex.Hex>
The Blobs.Blobs
to transform into Blob Versioned Hashes.
options
- Type:
toVersionedHashes.Options<as>
Options.
options.as
- Type:
"Bytes" | "Hex" | as
- Optional
Return type.
options.kzg
- Type:
Pick
KZG implementation.
Return Type
The Blob Versioned Hashes.
toVersionedHashes.ReturnType<as>