Function useMessages

  • 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>
    • enabled: boolean = true

    Returns Readonly<{
        isLoadingMessages: boolean;
        messages: null | SkipMsgV2[] | SkipMsg[];
        msgsError: null | string;
    }>