@metamask/network-controller
Version:
Provides an interface to the currently selected network via a MetaMask-compatible provider object
34 lines • 1.17 kB
text/typescript
/**
* Represents the availability state of the currently selected network.
*/
export declare enum NetworkStatus {
/**
* The network may or may not be able to receive requests, but either no
* attempt has been made to determine this, or an attempt was made but was
* unsuccessful.
*/
Unknown = "unknown",
/**
* The network is able to receive and respond to requests.
*/
Available = "available",
/**
* The network was unable to receive and respond to requests for unknown
* reasons.
*/
Unavailable = "unavailable",
/**
* The network is not only unavailable, but is also inaccessible for the user
* specifically based on their location. This state only applies to Infura
* networks.
*/
Blocked = "blocked"
}
export declare const INFURA_BLOCKED_KEY = "countryBlocked";
/**
* A set of deprecated network ChainId.
* The network controller will exclude those the networks begin as default network,
* without the need to remove the network from constant list of controller-utils.
*/
export declare const DEPRECATED_NETWORKS: Set<string>;
//# sourceMappingURL=constants.d.cts.map