pluginRegistry
Global plugin registry instance for managing FCL plugins. This registry handles the registration and management of various FCL plugins including service plugins that add new wallet services and strategies.
Import
You can import the entire package and access the function:
_10import * as fcl from "@onflow/fcl"_10_10fcl.pluginRegistry()
Or import directly the specific function:
_10import { pluginRegistry } from "@onflow/fcl"_10_10pluginRegistry()
Usage
_10// Add a plugin to the registry_10pluginRegistry.add({_10  name: "MyWalletPlugin",_10  f_type: "ServicePlugin",_10  type: "discovery-service",_10  services: [...],_10  serviceStrategy: { method: "CUSTOM/RPC", exec: customExecFunction }_10})
Returns
_10Readonly<{_10  add: (plugins: any) => void;_10  getPlugins: () => Map<any, any>;_10}>