You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: apps/nextra/pages/en/build/sdks/wallet-adapter/dapp.mdx
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,13 +58,14 @@ You can use any of the following optional fields.
58
58
It is recommended to:
59
59
60
60
1. Set `autoConnect` to `true`.
61
-
2. Set the `dappConfig` with the `network` property set to the network your dapp works with
61
+
2. Set the `dappConfig` with:
62
+
- The `network` property set to the network your dapp works with
63
+
- The `aptosApiKeys` property set to the generated Api Key for the specified network
62
64
63
65
| Field | Description | Example |
64
66
| --- | --- | --- |
65
67
|`autoConnect`| A prop indicates whether the dapp should auto connect with the most recently connected wallet on page reload. |`true`|
66
-
|`optInWallets`| Limit the list of supported AIP-62 wallets to just the ones with names in optedInWallets. |`['Petra']`|
67
-
|`dappConfig`| Specify an alternate network to work on. This prop only works for wallets which are NOT chrome extensions. If set, this object must include the name of the network the app is connected to. The object may include a aptosConnectDappId. |`{ network: 'mainnet', aptosConnectDappId: undefined }`|
68
+
|`dappConfig`| Specify an alternate network to work on. This prop only works for wallets which are NOT chrome extensions. If set, this object must include the name of the network the app is connected to. The object may include a aptosConnectDappId. |`{ network: 'mainnet', aptosApiKeys:{}, aptosConnectDappId: undefined }`|
68
69
|`onError`| A callback function to fire when the adapter throws an error. |`(error) => { console.log("error", error); }`|
0 commit comments