Skip to main content
function useTransfers(options): UseTransfersResult;
Hook for fetching account transfer history with pagination and filtering Fetches transfer history including both Bridge transfers (fiat-to-crypto) and SPL token transfers (on-chain Solana). Supports cursor-based pagination with automatic caching and background updates. Supports pagination (limit), filtering (status, paymentRail, currency, date ranges), and manual refetch.

Parameters

ParameterTypeDescription
optionsUseTransfersOptionsConfiguration options for transfer fetching, filtering, and pagination

Returns

UseTransfersResult Transfer data with loading, error, and pagination states

Example

import { useTransfers } from '@sqds/grid-react';

function TransferHistory() {
  const { transfers, isLoading, error } = useTransfers();

  if (isLoading) return <div>Loading...</div>;
  if (error) return <div>Error: {error.message}</div>;

  return (
    <ul>
      {transfers.map(transfer => (
        <li key={transfer.id}>{transfer.createdAt}</li>
      ))}
    </ul>
  );
}