How to Add Shell Wallet to CosmosKit
There are three packages for shell
@cosmos-kit/shell
@cosmos-kit/shell-extension
@cosmos-kit/shell
export all available shell wallets, while if you only want to add a particular one, choose @cosmos-kit/shell-extension
Note: all these packages export
wallets
and it's an array ofMainWalletBase
Take @cosmos-kit/shell
for example
install @cosmos-kit/shell
yarn add @cosmos-kit/shell
import the wallets
import { wallets as shell } from "@cosmos-kit/shell";
add to your provider
function MyCosmosApp({ Component, pageProps }: AppProps) {
return (
<ChainProvider
chains={chains}
assetLists={assets}
wallets={[...shell]}
walletConnectOptions={...} // required if `wallets` contains mobile wallets
>
<Component {...pageProps} />
</ChainProvider>
);
}
export default MyCosmosApp;