Skip to content

getAllDataSetMetadata

getAllDataSetMetadata(client, options): Promise<MetadataObject>

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

Get all metadata for a data set formatted as a MetadataObject

Parameter Type Description
client Client<Transport, Chain> The client to use to get the data set metadata.
options OptionsType getAllDataSetMetadata.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)