Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit e841c83

Browse files
authored
Update cross chain wallets docs with crossChainWallets config step (#970)
update cross chain wallets docs with crossChainWallets config step
1 parent cd89fcf commit e841c83

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

apps/nextra/pages/en/build/sdks/wallet-adapter/x-chain-accounts.mdx

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ import { setupAutomaticSolanaWalletDerivation } from "@aptos-labs/derived-wallet
8686

8787
setupAutomaticSolanaWalletDerivation({ defaultNetwork: Network.TESTNET }); // this is the Aptos network your dapp is working with
8888

89-
.....
89+
...
9090

9191
<AptosWalletAdapterProvider
9292
dappConfig={{
@@ -96,6 +96,19 @@ setupAutomaticSolanaWalletDerivation({ defaultNetwork: Network.TESTNET }); // th
9696
{children}
9797
<AptosWalletAdapterProvider/>
9898
```
99+
100+
### Set `crossChainWallets` dapp config prop to `true` fot the `AptosWalletAdapterProvider`
101+
102+
```tsx filename="WalletProvider.tsx"
103+
<AptosWalletAdapterProvider
104+
dappConfig={{
105+
network: Network.TESTNET,
106+
crossChainWallets: true,
107+
}}
108+
>
109+
{children}
110+
<AptosWalletAdapterProvider/>
111+
```
99112
</Steps>
100113

101114
</Tabs.Tab>
@@ -136,7 +149,7 @@ import { setupAutomaticEthereumWalletDerivation } from "@aptos-labs/derived-wall
136149

137150
setupAutomaticEthereumWalletDerivation({ defaultNetwork: Network.TESTNET }); // this is the Aptos network your dapp is working with
138151

139-
.....
152+
...
140153

141154
<AptosWalletAdapterProvider
142155
dappConfig={{
@@ -146,6 +159,19 @@ setupAutomaticEthereumWalletDerivation({ defaultNetwork: Network.TESTNET }); //
146159
{children}
147160
<AptosWalletAdapterProvider/>
148161
```
162+
163+
### Set `crossChainWallets` dapp config prop to `true` fot the `AptosWalletAdapterProvider`
164+
165+
```tsx filename="WalletProvider.tsx"
166+
<AptosWalletAdapterProvider
167+
dappConfig={{
168+
network: Network.TESTNET,
169+
crossChainWallets: true,
170+
}}
171+
>
172+
{children}
173+
<AptosWalletAdapterProvider/>
174+
```
149175
</Steps>
150176
</Tabs.Tab>
151177

0 commit comments

Comments
 (0)