react/interfaces/WalletProviderProps.md
The props of the WalletProvider component.
Properties
| Property | Type | Description |
|---|---|---|
autoConnect? | boolean | Connect initialProvider on mount, once (default: true). A wallet-backed provider is restored silently (restore(), no wallet prompt; with no account to restore the context stays not connected, without an error), so a page reload after an earlier connection reconnects without a prompt. A provider that has no restore() is connected with connect(). Connect a wallet that needs the user's approval with connect() from a user action. |
autoDetect? | boolean | Detect wallets on mount (default: true in a browser). |
children? | ReactNode | The app below the provider. |
initialProvider? | WalletProvider | A provider to start with. |
onConnect? | (address, provider) => void | Called after a connection succeeds. |
onDisconnect? | () => void | Called after the provider disconnects (by the app or by the wallet). |
onError? | (error) => void | Called when a connection fails. |
auto connect initial provider detect react node wallet on disconnect error