Skip to content

getEndorsedProviderIds

getEndorsedProviderIds(client, options?): Promise<OutputType>

Defined in: packages/synapse-core/src/endorsements/get-endorsed-provider-ids.ts:58

Get all endorsed provider IDs

Parameter Type Description
client Client<Transport, Chain> The client to use to get the endorsed providers.
options OptionsType getEndorsedProviderIds.OptionsType

Promise<OutputType>

Array of endorsed provider IDs getEndorsedProviderIds.OutputType

Errors getEndorsedProviderIds.ErrorType

import { getEndorsedProviderIds } from '@filoz/synapse-core/endorsements'
import { createPublicClient, http } from 'viem'
import { calibration } from '@filoz/synapse-core/chains'

const client = createPublicClient({
  chain: calibration,
  transport: http(),
})

const providerIds = await getEndorsedProviderIds(client)

console.log(providerIds)