Skip to content

getPDPProvidersByIds

getPDPProvidersByIds(client, options): Promise<OutputType>

Defined in: packages/synapse-core/src/sp-registry/get-pdp-providers.ts:254

Get FilecoinWarmStorage approved PDP providers by IDs

ParameterTypeDescription
clientClient<Transport, Chain>The client to use to get the providers.
optionsOptionsTypegetPDPProvidersByIds.OptionsType

Promise<OutputType>

The approved PDP providers getPDPProvidersByIds.OutputType

Errors getPDPProvidersByIds.ErrorType

import { getPDPProvidersByIds } from '@filoz/synapse-core/sp-registry'
import { createPublicClient, http } from 'viem'
import { calibration } from '@filoz/synapse-core/chains'
const client = createPublicClient({
chain: calibration,
transport: http(),
})
const result = await getPDPProvidersByIds(client)
console.log(result)