Skip to main content
Version: Next

BrowserProvider.getName() method

Get the name of this provider. Used for error messages and logging purposes.

Signature

interface BrowserProvider {
getName(): string;
}

Returns:

string

The provider name (e.g., "DefaultProvider", "CustomProvider")

Remarks

This method is used instead of constructor.name to avoid issues with minification in production builds.

Example

getName() {
return 'MyCustomProvider';
}