Cosmos Kit
Integrating Wallets
@ Leap Cosmos MetaMask Snap

How to Add Leap Metamask Cosmos Snap to CosmosKit

  • @cosmos-kit/leap-metamask-cosmos-snap

@cosmos-kit/leap-metamask-cosmos-snap export wallets for connecting to the leap cosmos snap in metamask

add @cosmos-kit/leap-metamask-cosmos-snap

yarn add @cosmos-kit/leap-metamask-cosmos-snap

import the wallets

import { wallets } from "@cosmos-kit/leap-metamask-cosmos-snap";

add to your provider

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