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.
yarn add @cosmos-kit/react @cosmos-kit/core @cosmos-kit/keplr chain-registry
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.
Basically these two hooks have most same functionalities, except useChain
consumes ChainProvider
while useWallet
consumes WalletProvider
.
🛠 Built by Cosmology — if you like our tools, please consider delegating to our validator ⚛️
Code built with the help of these related projects:
- create-cosmos-app Set up a modern Cosmos app by running one command ⚛️
- chain-registry an npm module for the official Cosmos chain-registry