useQuery
Callable
Type parameters
- TChainId: any
- TQuery: any
Parameters
query: TQuery
The function to create the query
optionaloptions: ChainComposableOptions<TChainId>
Additional options
Returns PromiseLikeAsyncState<FlatHead<InferQueryArgumentResult<TChainId, TQuery>>>
The data response
Composable for querying data from chain, and returning the response.