### Build and Run Cosmos-Kit Example Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/README.md Instructions to build the project and run the example application. Navigate to the example directory and start the development server. ```sh pnpm run build cd packages/example pnpm dev ``` -------------------------------- ### Install OKX Wallet Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/okx.mdx Install the `@cosmos-kit/okxwallet` package using yarn. ```bash yarn add @cosmos-kit/okxwallet ``` -------------------------------- ### Install @cosmos-kit/cdcwallet Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/packages/docs/pages/integrating-wallets/cdc.mdx Install the `@cosmos-kit/cdcwallet` package to include all Crypto.com wallets in your project. ```bash yarn add @cosmos-kit/cdcwallet ``` -------------------------------- ### Install imToken Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/packages/docs/pages/integrating-wallets/imtoken.mdx Install the `@cosmos-kit/imtoken` package using yarn. ```bash yarn add @cosmos-kit/imtoken ``` -------------------------------- ### Install Compass Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/compass.mdx Install the `@cosmos-kit/compass` package using yarn. ```bash yarn add @cosmos-kit/compass ``` -------------------------------- ### Install Cosmostation Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/cosmostation.mdx Install the `@cosmos-kit/cosmostation` package using yarn. ```bash yarn add @cosmos-kit/cosmostation ``` -------------------------------- ### Install FoxWallet Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/packages/docs/pages/integrating-wallets/foxwallet.mdx Install the `@cosmos-kit/foxwallet` package to include all available FoxWallet wallets. ```bash yarn add @cosmos-kit/foxwallet ``` -------------------------------- ### Install cosmos-kit Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/adding-all-wallets.mdx Install the cosmos-kit package using your preferred package manager. ```sh # npm npm i cosmos-kit # pnpm pnpm i cosmos-kit # yarn yarn add cosmos-kit ``` -------------------------------- ### Install Web3Auth Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/web3auth.mdx Install the Web3Auth package for CosmosKit using yarn. ```bash yarn add @cosmos-kit/web3auth ``` -------------------------------- ### Install All CosmosKit Wallets Source: https://context7.com/hyperweb-io/cosmos-kit/llms.txt Install all available wallet adapters at once for comprehensive wallet support. This includes the main React package and the chain registry. ```sh yarn add cosmos-kit chain-registry ``` -------------------------------- ### Install Fin Wallet Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/fin.mdx Install the `@cosmos-kit/fin` package to include all available Fin wallets, or `@cosmos-kit/fin-extension` for only the extension wallet. ```bash yarn add @cosmos-kit/fin ``` -------------------------------- ### Install @cosmos-kit/tailwind Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/packages/docs/pages/integrating-wallets/tailwind.mdx Install the `@cosmos-kit/tailwind` package to include all available TAILWIND wallets. Use this for a comprehensive integration. ```sh yarn add @cosmos-kit/tailwind ``` -------------------------------- ### Install Frontier Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/frontier.mdx Install the `@cosmos-kit/frontier` package to include all available Frontier wallets. ```bash yarn add @cosmos-kit/frontier ``` -------------------------------- ### Install Oko Wallet Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/oko.mdx Install the Oko wallet package using yarn. ```bash yarn add @cosmos-kit/oko ``` -------------------------------- ### Install @cosmos-kit/trust Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/trust.mdx Install the Trust Wallet package for CosmosKit using Yarn. ```bash yarn add @cosmos-kit/trust ``` -------------------------------- ### Install Keplr Wallet Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/keplr.mdx Install the `@cosmos-kit/keplr` package using yarn. ```bash yarn add @cosmos-kit/keplr ``` -------------------------------- ### Install Leap Metamask Cosmos Snap Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/leap-metamask-comos-snap.mdx Install the necessary package using yarn. ```bash yarn add @cosmos-kit/leap-metamask-cosmos-snap ``` -------------------------------- ### Install Vectis Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/vectis.mdx Install the `@cosmos-kit/vectis` package to include all available Vectis wallets. ```bash yarn add @cosmos-kit/vectis ``` -------------------------------- ### Clone and Bootstrap Cosmos Kit Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/README.md Clone the repository, navigate to the directory, and install dependencies using pnpm. ```sh # Clone the repo. git clone https://github.com/hyperweb-io/cosmos-kit cd cosmos-kit pnpm install ``` -------------------------------- ### Install Exodus Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/exodus.mdx Install the `@cosmos-kit/exodus` package to include Exodus wallets in your application. ```bash yarn add @cosmos-kit/exodus ``` -------------------------------- ### Install Ninji Wallet Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/ninji.mdx Install the `@cosmos-kit/ninji` package using yarn. ```bash yarn add @cosmos-kit/ninji ``` -------------------------------- ### Install Aria Mobile Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/packages/docs/pages/integrating-wallets/aria.mdx Install the `@cosmos-kit/aria-mobile` package using yarn. ```bash yarn add @cosmos-kit/aria-mobile ``` -------------------------------- ### Install Omni Wallet Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/omni.mdx Install the `@cosmos-kit/omni` package to include all available Omni wallets. ```bash yarn add @cosmos-kit/omni ``` -------------------------------- ### Install Okto Extension Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/packages/docs/pages/integrating-wallets/okto.mdx Install the Okto wallet package for CosmosKit. This command adds the required dependency to your project. ```bash yarn add @cosmos-kit/okto ``` -------------------------------- ### Install @cosmos-kit/ledger Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/ledger.mdx Install the necessary package for Ledger integration using npm, pnpm, or yarn. ```sh # npm npm i @cosmos-kit/ledger # pnpm pnpm i @cosmos-kit/ledger # yarn yarn add @cosmos-kit/ledger ``` -------------------------------- ### Install Bitget Wallet Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/packages/docs/pages/integrating-wallets/bitgetwallet.mdx Install the `@cosmos-kit/bitgetwallet` package using yarn. This package includes all available Bitget wallets. ```bash yarn add @cosmos-kit/bitgetwallet ``` -------------------------------- ### Install CosmosKit Dependencies Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/get-started.mdx Install the necessary CosmosKit packages and chain-registry for your project. `@cosmos-kit/react-lite` can be used instead of `@cosmos-kit/react` if you provide a customized modal. ```sh yarn add @cosmos-kit/react @cosmos-kit/keplr chain-registry ``` -------------------------------- ### Install Station Wallet Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/station.mdx Install the `@cosmos-kit/station` package using yarn. This package includes all available Station wallets. ```bash yarn add @cosmos-kit/station ``` -------------------------------- ### Install Lightweight CosmosKit for Custom UI Source: https://context7.com/hyperweb-io/cosmos-kit/llms.txt Install the lightweight version of the React package if you intend to use a custom UI and do not need the default modal. This option still requires a wallet adapter and the chain registry. ```sh yarn add @cosmos-kit/react-lite @cosmos-kit/keplr chain-registry ``` -------------------------------- ### Install Galaxy Station Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/packages/docs/pages/integrating-wallets/galaxy-station.mdx Install the `@cosmos-kit/galaxy-station` package using yarn. This package includes all available Galaxy Station wallets. ```bash yarn add @cosmos-kit/galaxy-station ``` -------------------------------- ### Install XDEFI Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/xdefi.mdx Install the `@cosmos-kit/xdefi` package to include XDEFI wallets in your application. This package exports all available XDEFI wallets. ```bash yarn add @cosmos-kit/xdefi ``` -------------------------------- ### Install Cosmos Kit React Packages Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/packages/react-lite/README.md Install the necessary packages for @cosmos-kit/react, including core functionalities, the React integration, and chain registry utilities. ```sh pnpm add @cosmos-kit/react @cosmos-kit/core @cosmos-kit/keplr chain-registry ``` -------------------------------- ### Install Leap Wallet Package Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/leap.mdx Install the `@cosmos-kit/leap` package using yarn. This package exports all available Leap wallets for integration. ```bash yarn add @cosmos-kit/leap ``` -------------------------------- ### Install @cosmos-kit/shell Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/integrating-wallets/shell.mdx Use this command to add the shell wallet package to your project dependencies. ```bash yarn add @cosmos-kit/shell ``` -------------------------------- ### Basic useIframe Hook Integration Source: https://github.com/hyperweb-io/cosmos-kit/blob/main/docs/hooks/use-iframe.mdx This example demonstrates how to use the `useIframe` hook to connect a wallet within an iframe. It shows how to get the `iframeRef` and use it to attach the iframe element. The example also includes basic connect/disconnect functionality using `useChain`. ```jsx export default function () { const { iframeRef } = useIframe(); const { connect, disconnect, isWalletConnected } = useChain("cosmoshub"); return (
| Code | Value |
|---|---|
| chains.cosmoshub.address | {chains.cosmoshub.address} |
| chains.osmosis.address | {chains.osmosis.address} |
| chains.stargaze.address | {chains.stargaze.address} |
| chains.juno.address | {chains.juno.address} |
| chains.akash.address | {chains.akash.address} |