Overview
The Activity feature provides a comprehensive transaction history for all operations performed on the Crocante platform. Monitor deposits, withdrawals, swaps, stakes, loans, and transfers with detailed filtering and search capabilities.What You Can Do
Complete Transaction Log
View every transaction with timestamps, amounts, and status updates
Advanced Filtering
Filter by transaction type, status, date range, and asset
Real-Time Updates
See pending transactions update to completed or failed in real-time
Transaction Details
Drill into each transaction for complete information including fees and confirmations
Key Capabilities
Activity Table
TheActivityTable component displays:
-
Type: Transaction category with icon
- Deposit (incoming funds)
- Withdrawal (outgoing transfers)
- Swap (asset exchanges)
- Stake (staking deposits)
- Unstake (staking withdrawals)
- Loan (borrowing transactions)
- Repayment (loan payments)
- Transfer (internal moves)
-
Date: Transaction timestamp
- Primary: Date (YYYY-MM-DD)
- Subtitle: Time (HH:MM:SS)
-
Amount: Transaction value
- Primary: Asset amount with symbol
- Subtitle: USD equivalent value
-
Status: Current transaction state
- Success (completed transactions)
- Pending (awaiting confirmation)
- Failed (rejected or error)
- Cancelled (user-cancelled operations)
Filtering System
TheuseActivityFilters hook provides:
- Transaction Type
- Status
- Pagination
Filter by operation category:
- All Transactions (default)
- Deposits only
- Withdrawals only
- Swaps only
- Staking operations
- Loan operations
- Transfers only
Filter Modal
Click the filters button to open theModal component with:
- Transaction Type Selector: Dropdown to select operation type
- Status Selector: Dropdown to filter by status
- Active Filters Badge: Shows count of applied filters
- Clear Filters: Reset to default view
Select components with:
txTypeSelectorprops for transaction typestatusSelectorprops for status filtering
How to Use Activity
Navigate to Activity
Go to the Activity page from the main navigation. You’ll see a table of recent transactions.
Review Recent Transactions
The table shows latest transactions first. Each row displays:
- Icon indicating transaction type
- Date and time of operation
- Amount and asset
- Current status badge
Apply Filters
Click the filter icon to open filtering options:
- Select specific transaction types to focus on
- Filter by status to find pending or failed transactions
- Combine filters for precise queries
Navigate Pages
Use pagination controls at the bottom to:
- Move to next/previous page
- Jump to a specific page number
- View total transaction count
Transaction Statuses
Understanding transaction states:Success: Transaction completed successfully and is finalized on-chain or in the system.
Failed: Transaction encountered an error. Common reasons include insufficient balance, gas issues, or validation failures.
Cancelled: User cancelled the transaction before completion, or an approval workflow was rejected.
Data Components
The activity feature uses:-
useActivityData: Fetches transaction history with pagination
- Parameters:
page,status,txType - Returns:
activityDataarray andisLoadingstate - Automatically refetches on filter changes
- Parameters:
-
useActivityFilters: Manages filter state
- Tracks
page,status,txTypevalues - Provides
activeFilterscount for badge - Controls filter modal open/close state
- Returns selector props for dropdowns
- Tracks
Activity Table Implementation
The table uses the reusableTable component:
Real-Time Updates
Transaction statuses update automatically:- Pending transactions refresh periodically
- Completed transactions show final confirmation
- Failed transactions display error details
- Toast notifications for status changes
Badge Styling
Status badges use theBadge component with variants:
- Success: Green badge for completed transactions
- Pending: Blue badge for in-progress operations
- Failed: Red badge for errors
- Cancelled: Gray/accent badge for user cancellations
Exporting Data
Future versions will include CSV/PDF export functionality for transaction history, useful for accounting and tax reporting.
Best Practices
Troubleshooting
Transactions not appearing:- Clear filters to ensure nothing is hidden
- Check pagination - transaction may be on another page
- Verify the operation completed (check source feature like Portfolio or Staking)
- Refresh the page to reload data
- Blockchain transactions may take time depending on network congestion
- Check block explorer for on-chain status
- Contact support if pending for >1 hour
- Ensure filter modal shows correct selections
- Try clearing all filters and reapplying
- Check that transactions exist matching filter criteria
Related Features
- Portfolio - Source of deposit/withdrawal transactions
- Staking - Generates stake/unstake activity
- Credit - Creates loan and repayment transactions
- Governance - Approval workflows affect transaction status
