Optionaloptions: ExtensionProviderOptionsAttempt to connect and discover accounts.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the connection attempt.
Accounts on success, typed error on failure.
Disconnect and clean up resources. Safe to call multiple times.
Subscribe to account list changes.
Emitted when the set of available accounts changes (e.g., user connects/disconnects in the host wallet).
Unsubscribe function.
Subscribe to connection status changes.
Not all providers emit status changes — for example, dev accounts are always "connected" and never emit.
Unsubscribe function.
Provider for browser-injected wallet extensions.
Discovers available extensions via
window.injectedWeb3, connects to the first available (or a specific named) extension, and maps accounts toSignerAccountinstances.