Cosmos Kit
Hooks
- useWalletClient

Hook - useWalletClient

  • required provider: ChainProvider from either @cosmos-kit/react or @cosmos-kit/react-lite

  • parameters:

    • walletName?: WalletName ( = string );

if walletName is undefined, using currentWallet instead. See LocalStorage key cosmos-kit@2:core//current-wallet

Type - WalletClientContext

Properties

NameDescriptionTypeDefault
clientwallet clientWalletClient | undefinedundefined
statuswallet client statusStateState.Init
messageerror message if wallet client is undefinedstring | undefinedundefined

Examples

get account (opens in a new tab)