getEndorsedProviderIds
getEndorsedProviderIds(
client,options?):Promise<OutputType>
Defined in: packages/synapse-core/src/endorsements/get-endorsed-provider-ids.ts:58
Get all endorsed provider IDs
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client | Client<Transport, Chain> | The client to use to get the endorsed providers. |
options | OptionsType | getEndorsedProviderIds.OptionsType |
Returns
Section titled “Returns”Array of endorsed provider IDs getEndorsedProviderIds.OutputType
Throws
Section titled “Throws”Errors getEndorsedProviderIds.ErrorType
Example
Section titled “Example”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)