Avalanche SDK Client
    Preparing search index...

    Function loadVMs

    • Dynamically loads any virtual machines installed on the node as plugins.

      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. AvalancheCoreClient

      Returns Promise<LoadVMsReturnType>

      The virtual machines installed on the node. LoadVMsReturnType

      import { createAvalancheCoreClient } from '@avalanche-sdk/client'
      import { avalanche } from '@avalanche-sdk/client/chains'
      import { loadVMs } from '@avalanche-sdk/client/methods/admin'

      const client = createAvalancheCoreClient({
      chain: avalanche,
      transport: {
      type: "http",
      url: "<url>",
      },
      });

      const vms = await loadVMs(client);