JSPM

@cosmos-kit/react

0.27.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2061
  • Score
    100M100P100Q112158F
  • License SEE LICENSE IN LICENSE

cosmos-kit wallet connector

Package Exports

  • @cosmos-kit/react
  • @cosmos-kit/react/main/index.js
  • @cosmos-kit/react/module/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cosmos-kit/react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cosmos-kit

CosmosKit is a wallet adapter for developers to build apps that quickly and easily interact with Cosmos blockchains and wallets.

@cosmos-kit/react is the React integration for CosmosKit.

Documentation

docs.cosmoskit.com

Installation

yarn add @cosmos-kit/react @cosmos-kit/core @cosmos-kit/keplr chain-registry

Provider

Compared to WalletProvider, which limits connection of only one chain with one wallet type at a time, ChainProvider allows multipule chains connected at a time, but limits one wallet type. It means if you choose to connect Keplr, you cannot connect Cosmostation at the same time.

Hooks

Basically these two hooks have most same functionalities, except useChain consumes ChainProvider while useWallet consumes WalletProvider.

Credits

🛠 Built by Cosmology — if you like our tools, please consider delegating to our validator ⚛️

Code built with the help of these related projects: