Skip to content

getAllDataSetMetadata

getAllDataSetMetadata(client, options): Promise<MetadataObject>

Defined in: packages/synapse-core/src/warm-storage/get-all-data-set-metadata.ts:63

Get all metadata for a data set formatted as a MetadataObject

ParameterTypeDescription
clientClient<Transport, Chain>The client to use to get the data set metadata.
optionsOptionsTypegetAllDataSetMetadata.OptionsType

Promise<MetadataObject>

The metadata formatted as a MetadataObject getAllDataSetMetadata.OutputType

Errors getAllDataSetMetadata.ErrorType

import { getAllDataSetMetadata } from '@filoz/synapse-core/warm-storage'
import { createPublicClient, http } from 'viem'
import { calibration } from '@filoz/synapse-core/chains'
const client = createPublicClient({
chain: calibration,
transport: http(),
})
const metadata = await getAllDataSetMetadata(client, {
dataSetId: 1n,
})
console.log(metadata)