Skip to main content
Return value from useTransfers hook

Properties

PropertyTypeDescription
transfers(BridgeTransfer | SplTransfer)[]Array of account transfers (Bridge or SPL) Empty array if no transfers found or still loading Note: When pagination is enabled, this contains all loaded pages concatenated
isLoadingbooleanWhether the query is currently loading for the first time
isErrorbooleanWhether the query encountered an error
errorErrorError object if query failed, null otherwise
refetch() => voidFunction to manually refetch all transfers from the beginning
isRefetchingbooleanWhether data is being refetched in the background
responseTransferResponseRaw response from the API (most recent fetch) Includes both data and potential error fields
loadMore() => voidFunction to load the next page of transfers Only available when pagination is enabled (limit option provided)
hasMorebooleanWhether more transfers are available to load True if there are additional pages of data
isFetchingNextPagebooleanWhether the next page is currently being fetched