diff --git a/developers/solana-adapter-xdefi-integration.md b/developers/solana-adapter-xdefi-integration.md index a8056ffd3..435dcc7a0 100644 --- a/developers/solana-adapter-xdefi-integration.md +++ b/developers/solana-adapter-xdefi-integration.md @@ -1 +1,65 @@ # Solana Adapter XDEFI Integration + +# Extension Wallet Solana Integration + +[[toc]] + +## Using Solana Adapter + +### Solana Adapter not installed + +Install the latest wallets package: + +```bash +npm install @solana/wallet-adapter-xdefi@latest +``` + +Once installed, you can add XDEFI Wallet by making adding this part of code: + +```js:line-numbers {0} +import { XDEFIWalletAdapter } from `@solana/wallet-adapter-xdefi`; +import { /* ... other adapters ... */ } from `@solana/wallet-adapter-wallets`; + +const wallets = useMemo( + () => [ + new XDEFIWalletAdapter(), + // ... other adapters ... + ], + [] +); + + +``` + +### Solana Adapter already installed + +Install the latest wallets package: + +```bash +npm install @solana/wallet-adapter-wallets@latest +``` + +Once installed, you can add XDEFI Wallet by making 2 changes: + +```js:line-numbers {0} +import { + XDEFIWalletAdapter, // [!code ++] + /* ... other adapters ... */ +} from `@solana/wallet-adapter-wallets`; + +const wallets = useMemo( + () => [ + new XDEFIWalletAdapter(), // [!code ++] + // ... other adapters ... + ], + [] +); + + +``` + +## Using XDEFI Provider + +## Using XDEFI SDK + +TBD