- useMessages(userAddressesMap, routeResponse, options?, enabled?): Readonly<{
isLoadingMessages: boolean;
messages: null | SkipMsgV2[] | SkipMsg[];
msgsError: null | string;
}> Parameters
- userAddressesMap: null | string[] | Record<string, string>
- routeResponse: undefined | RouteResponse
Optional
options: Partial<MessageQueryOptions>- enabled: boolean = true
Returns Readonly<{
isLoadingMessages: boolean;
messages: null | SkipMsgV2[] | SkipMsg[];
msgsError: null | string;
}>
React hook to get the messages for a swap/transfer using Skip API