Hook - useWalletClient
-
required provider: ChainProvider from either
@cosmos-kit/react
or@cosmos-kit/react-lite
-
parameters:
- walletName?:
WalletName
( =string
);
- walletName?:
if
walletName
isundefined
, usingcurrentWallet
instead. See LocalStorage keycosmos-kit@2:core//current-wallet
- return type: WalletClientContext
Type - WalletClientContext
Properties
Name | Description | Type | Default |
---|---|---|---|
client | wallet client | WalletClient | undefined | undefined |
status | wallet client status | State | State.Init |
message | error message if wallet client is undefined | string | undefined | undefined |