Skip to main content

ConfigRegistryController Actions

4 actions registered.

NameDeprecated
getNetworkConfigByCaip2ChainId
getState
startPolling
stopPolling

ConfigRegistryController:getNetworkConfigByCaip2ChainId​

Package: @metamask/config-registry-controller

Get the network configuration for a given CAIP-2 chain ID.

Parameters:

NameDescription
caip2ChainIdThe CAIP-2 chain ID (e.g., "eip155:1").

Returns: The network configuration if found, otherwise undefined.

Handler signature:

(caip2ChainId: CaipChainId) => RegistryNetworkConfig | undefined

ConfigRegistryController:getState​

Package: @metamask/config-registry-controller

Retrieves the state of the ConfigRegistryController.

Handler signature:

() => ConfigRegistryControllerState

ConfigRegistryController:startPolling​

Package: @metamask/config-registry-controller

Handler signature:

ConfigRegistryController['startPolling']

ConfigRegistryController:stopPolling​

Package: @metamask/config-registry-controller

Stop all polling.

Handler signature:

() => void