Function useMessagesSWR

  • React hook to get the messages for a swap/transfer using Skip API

    Parameters

    • userAddressesMap: null | string[] | Record<string, string>
    • routeResponse: undefined | RouteResponse
    • Optional options: Partial<MessageQueryOptions>
    • Optional enabled: boolean
    • Optional config: Partial<PublicConfiguration<any, any, BareFetcher<any>>>

    Returns SWRResponse<undefined | SkipMsgV2[] | SkipMsg[], any, {
        onError: ((error) => boolean);
    }>