- useMessagesSWR(userAddressesMap, routeResponse, options?, enabled?, config?): SWRResponse<undefined | SkipMsgV2[] | SkipMsg[], any, {
onError: ((error) => boolean);
}> Parameters
- userAddressesMap: null | string[] | Record<string, string>
- routeResponse: undefined | RouteResponse
Optional
options: Partial<MessageQueryOptions>Optional
enabled: booleanOptional
config: Partial<PublicConfiguration<any, any, BareFetcher<any>>>
Returns SWRResponse<undefined | SkipMsgV2[] | SkipMsg[], any, {
onError: ((error) => boolean);
}>
React hook to get the messages for a swap/transfer using Skip API