Core Functionalities
NFT Portfolio
View and manage all NFTs owned by a user with detailed metadata and pricing information
Collection Discovery
Search and browse NFT collections with floor price tracking and collection analytics
Buy NFTs
Purchase individual NFTs or floor NFTs from collections with integrated Tensor trading
Sell & List
List owned NFTs for sale with custom pricing and duration settings
Installation & Setup
1
API Configuration
Configure your Tensor API access in
.env.local:2
Import Module
Import the components and hooks you need:
3
Wallet Integration
Ensure wallet providers are configured for transaction signing:
Tensor API: This module primarily uses Tensor’s API for NFT data and trading. Ensure you have appropriate API access and rate limits configured.
Module Architecture
Core Components
- NFT Screen
- Buy Section
- Sell Section
- NFT Details
NftScreen - Main NFT trading interface with buy/sell tabs- Tabbed interface for buying and selling
- Collection search and discovery
- User’s NFT portfolio display
- Integrated trading functionality
Core Hook: useFetchNFTs
The primary hook for fetching user’s NFT portfolio:walletAddress- User’s wallet addressoptions- Configuration object with:includeCompressed- Include compressed NFTsincludeMetadata- Fetch full metadatasortBy- Sort order preference
nfts- Array of NFT itemsloading- Loading stateerror- Error message if anyrefetch- Function to refresh data
NFT Service Functions
ThenftService.ts provides comprehensive Tensor API integration:
object
Quick Start Examples
NFT Utilities
The module includes specialized utilities for handling NFT data:object
Advanced Features
NFT Sharing Integration
Real-time Floor Price Tracking
Batch NFT Operations
Integration with Other Modules
Embedded Wallets
Transaction signing and wallet address management for NFT operations
Data Module
Enhanced NFT metadata and portfolio value calculations
Thread Module
Social sharing of NFT listings and collection discoveries
MoonPay
Purchase SOL to fund NFT acquisitions
Error Handling & Troubleshooting
object
Performance Considerations
API Reference
For detailed API documentation, see:The NFT module provides a complete digital collectibles trading platform, enabling users to discover, buy, sell, and manage NFTs with professional-grade tools and seamless Tensor integration.