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
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client |
Client<Transport, Chain> |
The client to use to get the data set metadata. |
options |
OptionsType |
getAllDataSetMetadata.OptionsType |
Returns
Section titled “Returns”The metadata formatted as a MetadataObject getAllDataSetMetadata.OutputType
Throws
Section titled “Throws”Errors getAllDataSetMetadata.ErrorType
Example
Section titled “Example”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)