Skip to content

Latest commit

 

History

History
 
 

react

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: