NFT Management
Tensor NFT Marketplace
List and manage NFTs on Tensor Trade
Interact with Tensor Trade marketplace to list and manage NFTs. This implementation provides functionality for listing NFTs for sale and canceling existing listings.
Core Features
-
Listing Management
- List NFTs for sale
- Cancel listings
- Price setting
- Ownership verification
-
Token Account
- Associated token validation
- Ownership checks
- Balance verification
- Account creation
Usage
List NFT for Sale
Cancel Listing
Example Prompts
Natural Language Prompts
LangChain Tool Prompts
List NFT
Cancel Listing
Implementation Details
Listing Process
Ownership Verification
Error Handling
Best Practices
-
Listing Management
- Verify ownership first
- Check token accounts
- Validate prices
- Monitor transactions
-
Token Handling
- Verify mint addresses
- Check balances
- Validate accounts
- Handle permissions
-
Transaction Processing
- Build transactions properly
- Include all signers
- Handle timeouts
- Monitor status
Common Issues
-
Listing Issues
- Invalid mint address
- NFT not owned
- Price formatting
- Account mismatch
-
Cancellation Issues
- Listing not found
- Permission denied
- Network errors
- Transaction failures
-
Account Issues
- Missing ATA
- Zero balance
- Wrong owner
- Program mismatch
Response Format
Success Response
Error Response
SDK Integration
TensorSwap SDK Setup
Transaction Building
Advanced Features
-
Custom Token Programs
- SPL Token support
- Program validation
- Account creation
- Balance management
-
Authorization
- Auth data handling
- Permission checks
- Signature validation
- Access control
-
Price Management
- Lamport conversion
- Price validation
- Fee calculation
- Slippage protection
Resources
Was this page helpful?