Hook - useNameService
-
required provider: ChainProvider from either
@cosmos-kit/react
or@cosmos-kit/react-lite
-
parameters:
- name?:
NameServiceName
( =string
);
- name?:
Note:
name
is optional. ifname
is not provided, using thedefaultNameService
inChainProvider
- return type: Mutable<NameService>
Type - Mutable<NameService>
properties
Name | Description | Type | Default |
---|---|---|---|
state | - | State | State.Init |
data | - | NameService | undefined |
message | - | string | undefined |
Note:
state
,data
andmessage
are react states.