getApprovedPDPProviders
getApprovedPDPProviders(
client,options):Promise<OutputType>
Defined in: packages/synapse-core/src/sp-registry/get-pdp-providers.ts:182
Get FilecoinWarmStorage approved PDP providers
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client | Client<Transport, Chain> | The client to use to get the providers. |
options | OptionsType | getApprovedPDPProviders.OptionsType |
Returns
Section titled “Returns”The approved PDP providers getApprovedPDPProviders.OutputType
Throws
Section titled “Throws”Errors getApprovedPDPProviders.ErrorType
Example
Section titled “Example”import { getApprovedPDPProviders } 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 getApprovedPDPProviders(client)
console.log(result)