Cosmos Kit
Integrating Wallets
@ Xdefi Wallet

How to Add Xdefi Wallet to CosmosKit

There are two packages for xdefi

  • @cosmos-kit/xdefi
  • @cosmos-kit/xdefi-extension

@cosmos-kit/xdefi export all available xdefi wallets (currently only extension available), while if you only want to add a particular one, choose @cosmos-kit/xdefi-extension

Note: all these packages export wallets and it's an array of MainWalletBase

Take @cosmos-kit/xdefi for example

add @cosmos-kit/xdefi

yarn add @cosmos-kit/xdefi

import the wallets

import { wallets as xdefi } from "@cosmos-kit/xdefi";

add to your provider

function MyCosmosApp({ Component, pageProps }: AppProps) {
  return (
      <ChainProvider
        chains={chains}
        assetLists={assets}
        wallets={[...xdefi]}
        walletConnectOptions={...} // required if `wallets` contains mobile wallets
      >
        <Component {...pageProps} />
      </ChainProvider>
  );
}
 
export default MyCosmosApp;