Cosmos Kit
Hooks
- useNameService

Hook - useNameService

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

  • parameters:

    • name?: NameServiceName ( = string );

Note: name is optional. if name is not provided, using the defaultNameService in ChainProvider

Type - Mutable<NameService>

properties

NameDescriptionTypeDefault
state-StateState.Init
data-NameServiceundefined
message-stringundefined

Note: state, data and message are react states.

Examples

name service (opens in a new tab)