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