From 19261a3c6206fc06a94aba41104e22538d73358d Mon Sep 17 00:00:00 2001 From: maayan Date: Tue, 17 Feb 2026 15:24:11 -0500 Subject: [PATCH 1/4] add Sui support to the cross chain docs --- .../sdks/wallet-adapter/x-chain-accounts.mdx | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/src/content/docs/build/sdks/wallet-adapter/x-chain-accounts.mdx b/src/content/docs/build/sdks/wallet-adapter/x-chain-accounts.mdx index 73a1fd0a..4b42c620 100644 --- a/src/content/docs/build/sdks/wallet-adapter/x-chain-accounts.mdx +++ b/src/content/docs/build/sdks/wallet-adapter/x-chain-accounts.mdx @@ -166,6 +166,68 @@ Currently, the adapter supports Solana and EVM chains ``` + + {/* Sui */} + + + The wallet adapter follows the [Sui Wallet Standard](https://docs.sui.io/standards/wallet-standard) to discover wallets. + Currently, the wallets that have been tested and support cross-chain accounts are: + + | | Aptos Devnet | Aptos Testnet | Aptos Mainnet | + | ------------ | ------------ | ------------- | ------------- | + | Backpack | ✅ | ✅ | ✅ | + | Bitget | ✅ | ✅ | ✅ | + | Ethos | ✅ | ✅ | ✅ | + | Nightly | ✅ | ✅ | ✅ | + | OKX | ✅ | ✅ | ✅ | + | Phantom | ✅ | ✅ | ✅ | + | Slush | ✅ | ✅ | ✅ | + | Trust Wallet | ✅ | ✅ | ✅ | + + Supporting x-chain accounts in a dApp requires only a 2-step installation process. + + + 1. Install the @aptos-labs/derived-wallet-sui package + + ```shellscript + npm install @aptos-labs/derived-wallet-sui + ``` + + 2. Import the setupAutomaticSuiWalletDerivation function + + Once you have installed the `@aptos-labs/derived-wallet-sui` package, you can import and use it. + In the same file where you import the other wallets, such as `WalletProvider.tsx`, you can add the following: + + ```tsx filename="WalletProvider.tsx" + import { setupAutomaticSuiWalletDerivation } from "@aptos-labs/derived-wallet-sui"; + + setupAutomaticSuiWalletDerivation({ defaultNetwork: Network.TESTNET }); // this is the Aptos network your dapp is working with + + ... + + + {children} + + ``` + + 3. Set crossChainWallets dapp config prop to true fot the AptosWalletAdapterProvider + + ```tsx filename="WalletProvider.tsx" + + {children} + + ``` + + That will handle the logic and implementation to include the x-chain accounts as if they were Aptos wallets. From 4f0acc7e6f8ac3ab24c31bd7f17a03a98a1ca62d Mon Sep 17 00:00:00 2001 From: maayan Date: Mon, 2 Mar 2026 15:48:12 -0500 Subject: [PATCH 2/4] address comments --- .../es/build/sdks/wallet-adapter/x-chain-accounts.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/docs/es/build/sdks/wallet-adapter/x-chain-accounts.mdx b/src/content/docs/es/build/sdks/wallet-adapter/x-chain-accounts.mdx index e37ca04b..7d0a0679 100644 --- a/src/content/docs/es/build/sdks/wallet-adapter/x-chain-accounts.mdx +++ b/src/content/docs/es/build/sdks/wallet-adapter/x-chain-accounts.mdx @@ -86,7 +86,7 @@ Actualmente, el adaptador soporta cadenas Solana y EVM }} > {children} - + ``` 3. Establecer la prop crossChainWallets dapp config a true para el AptosWalletAdapterProvider @@ -99,7 +99,7 @@ Actualmente, el adaptador soporta cadenas Solana y EVM }} > {children} - + ``` @@ -146,7 +146,7 @@ Actualmente, el adaptador soporta cadenas Solana y EVM }} > {children} - + ``` 3. Set crossChainWallets dapp config prop to true fot the AptosWalletAdapterProvider @@ -159,7 +159,7 @@ Actualmente, el adaptador soporta cadenas Solana y EVM }} > {children} - + ``` From 2affa545e0f233c00da314148a2bbc28902ce6bb Mon Sep 17 00:00:00 2001 From: maayan Date: Mon, 2 Mar 2026 15:48:46 -0500 Subject: [PATCH 3/4] correct nano-staged remark command to process only staged files --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index db88d926..71e2dcb4 100644 --- a/package.json +++ b/package.json @@ -155,7 +155,7 @@ "prettier --write" ], "src/content/**/*.mdx": [ - "remark \"src/content/**/*.{md,mdx}\" --output" + "remark --output --" ] } } From a62a5726ab82616509f2a7f5b3808cfe6379c9c5 Mon Sep 17 00:00:00 2001 From: maayan Date: Mon, 2 Mar 2026 15:54:32 -0500 Subject: [PATCH 4/4] address comments --- .../sdks/wallet-adapter/x-chain-accounts.mdx | 32 +++++++++---------- .../sdks/wallet-adapter/x-chain-accounts.mdx | 2 -- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/src/content/docs/build/sdks/wallet-adapter/x-chain-accounts.mdx b/src/content/docs/build/sdks/wallet-adapter/x-chain-accounts.mdx index 4b42c620..89d2c04d 100644 --- a/src/content/docs/build/sdks/wallet-adapter/x-chain-accounts.mdx +++ b/src/content/docs/build/sdks/wallet-adapter/x-chain-accounts.mdx @@ -38,8 +38,6 @@ The computation of the DAA address is done using the `authenticationFunction` an ### How to integrate x-chain accounts in my dApp? -Currently, the adapter supports Solana and EVM chains - @@ -89,10 +87,10 @@ Currently, the adapter supports Solana and EVM chains }} > {children} - + ``` - 3. Set crossChainWallets dapp config prop to true fot the AptosWalletAdapterProvider + 3. Set crossChainWallets dapp config prop to true for the AptosWalletAdapterProvider ```tsx filename="WalletProvider.tsx" {children} - + ``` @@ -149,7 +147,7 @@ Currently, the adapter supports Solana and EVM chains }} > {children} - + ``` 3. Set crossChainWallets dapp config prop to true fot the AptosWalletAdapterProvider @@ -162,7 +160,7 @@ Currently, the adapter supports Solana and EVM chains }} > {children} - + ``` @@ -175,14 +173,14 @@ Currently, the adapter supports Solana and EVM chains | | Aptos Devnet | Aptos Testnet | Aptos Mainnet | | ------------ | ------------ | ------------- | ------------- | - | Backpack | ✅ | ✅ | ✅ | - | Bitget | ✅ | ✅ | ✅ | - | Ethos | ✅ | ✅ | ✅ | - | Nightly | ✅ | ✅ | ✅ | - | OKX | ✅ | ✅ | ✅ | - | Phantom | ✅ | ✅ | ✅ | - | Slush | ✅ | ✅ | ✅ | - | Trust Wallet | ✅ | ✅ | ✅ | + | Backpack | ✅ | ✅ | ✅ | + | Bitget | ✅ | ✅ | ✅ | + | Ethos | ✅ | ✅ | ✅ | + | Nightly | ✅ | ✅ | ✅ | + | OKX | ✅ | ✅ | ✅ | + | Phantom | ✅ | ✅ | ✅ | + | Slush | ✅ | ✅ | ✅ | + | Trust Wallet | ✅ | ✅ | ✅ | Supporting x-chain accounts in a dApp requires only a 2-step installation process. @@ -211,7 +209,7 @@ Currently, the adapter supports Solana and EVM chains }} > {children} - + ``` 3. Set crossChainWallets dapp config prop to true fot the AptosWalletAdapterProvider @@ -224,7 +222,7 @@ Currently, the adapter supports Solana and EVM chains }} > {children} - + ``` diff --git a/src/content/docs/es/build/sdks/wallet-adapter/x-chain-accounts.mdx b/src/content/docs/es/build/sdks/wallet-adapter/x-chain-accounts.mdx index 7d0a0679..083516cf 100644 --- a/src/content/docs/es/build/sdks/wallet-adapter/x-chain-accounts.mdx +++ b/src/content/docs/es/build/sdks/wallet-adapter/x-chain-accounts.mdx @@ -39,8 +39,6 @@ El cálculo de la dirección DAA se hace usando la `authenticationFunction` y la ### ¿Cómo integrar cuentas x-chain en mi dApp? -Actualmente, el adaptador soporta cadenas Solana y EVM -