Avalanche SDK Client
    Preparing search index...

    Function acps

    • Returns peer preferences for Avalanche Community Proposals (ACPs).

      Type Parameters

      • chain extends undefined | Chain

      Parameters

      • client: { extend: <const client extends { [key: string]: unknown }>(fn: (client: { extend: ... }) => client) => { [K in (...) | (...) | (...)]: (...)[(...)] } }

        The client to use.

      Returns Promise<AcpsReturnType>

      The ACP preferences. AcpsReturnType

      import { createInfoApiClient } from '@avalanche-sdk/client'
      import { avalanche } from '@avalanche-sdk/client/chains'
      import { acps } from '@avalanche-sdk/client/methods/info'

      const client = createInfoApiClient({
      chain: avalanche,
      transport: {
      type: "http",
      },
      })

      const acpPreferences = await acps(client)