Cosmos Kit

repository·main·Indexed 42 days ago

https://github.com/hyperweb-io/cosmos-kit

A universal wallet adapter for developers to build applications that interact with Cosmos blockchains and wallets. It provides a modular ecosystem including @cosmos-kit/core for core functionality, @cosmos-kit/react for React integration, and @cosmos-kit/walletconnect for mobile support. Note: Cosmos Kit 3.0 and Create Cosmos App 2.0 have been succeeded by interchain-kit.

Tokens
140.5K
Snippets
395
Records
612
Agent score
50%

What's inside Cosmos Kit

  1. Overview of Cosmos Kit

    main

    Cosmos Kit is a universal wallet adapter designed for developers to build applications that interact with Cosmos blockchains and wallets. It provides a standardized way to integrate various wallet providers into your application.

    ⚠️ IMPORTANT UPGRADE NOTICE Cosmos Kit 3.0 and Create Cosmos App 2.0 have been superseded by interchain-kit. It is highly recommended to use interchain-kit for improved tooling, broader compatibility, and full Interchain ecosystem support. You can also use create-interchain-app as an official starter kit.

  2. Overview of available CosmosKit hooks

    main

    CosmosKit provides several hooks for managing chains, wallets, and identity. Note that most hooks require the ChainProvider to be configured first.

    • useChain: Provides properties and methods related to chainWallet. Supports multiple chains connected simultaneously. Calling this hook activates the corresponding chainWallets.
    • useChainWallet: Provides properties and methods related to chainWallet. Supports multiple chains and wallets connected simultaneously. Calling this hook activates the corresponding chainWallet.
    • useManager: Used to manage all chains and wallets.
    • useModalTheme: Used to manage default modal themes.
    • useNameService: Retrieves the alias name of an address from a specific name server.
    • useWallet: Manages all chainWallets and the global status for a specific wallet.
    • useWalletClient: Retrieves the wallet client for a specific wallet.
    • useIframe: Sets up an iframe that can automatically access the currently connected wallet.
  3. Overview of @cosmos-kit/react components and hooks

    main

    The @cosmos-kit/react package provides the necessary React primitives to integrate Cosmos wallets into your application. Key features include:

    • Provider: Use ChainProvider to wrap your application and provide chain context.
    • Hooks: Use useChain to access chain information within your components.
  4. Overview of @cosmos-kit/cosmostation

    main

    The @cosmos-kit/cosmostation package provides the integration for the Cosmostation wallet within the Cosmos Kit ecosystem.

    Cosmos Kit itself acts as a universal wallet adapter, allowing developers to build applications that interact with various Cosmos blockchains and wallets through a single, streamlined interface.

  5. Overview of CosmosKit

    main
    CosmosKit is a wallet adapter designed for developers to build applications that interact quickly and easily with Cosmos blockchains and wallets. It provides a unified interface for connecting to various Cosmos-compatible wallets and managing blockchain interactions.
  6. Use @cosmos-kit/leap-metamask-cosmos-snap for MetaMask integration

    main

    The @cosmos-kit/leap-metamask-cosmos-snap package provides a MetaMask integration for Cosmos Kit. It allows developers to enable MetaMask users to interact with Cosmos blockchains via the leap-metamask-cosmos-snap technology.

    ⚠️ IMPORTANT UPGRADE NOTICE

    Cosmos Kit 3.0 and Create Cosmos App 2.0 have been superseded. For improved tooling, broader compatibility, and full Interchain ecosystem support, you should migrate to:

  7. Use @cosmos-kit/ctrl-extension for ctrl wallet integration

    main

    @cosmos-kit/ctrl-extension is a specific integration for the ctrl wallet within the Cosmos Kit ecosystem. It allows developers to include ctrl as a connection option for users in their decentralized applications.

    ⚠️ IMPORTANT UPGRADE NOTICE

    This package is part of the legacy Cosmos Kit ecosystem. For new projects, it is highly recommended to migrate to Interchain Kit and Create Interchain App, which are the official successors providing improved tooling, broader compatibility, and full Interchain ecosystem support.