NFT API

📋 Table of Contents

Overview

The NFT API provides comprehensive NFT management services for the OASIS ecosystem. It handles NFT creation, minting, trading, and analytics with support for multiple standards, real-time updates, and advanced security features.

NFT Management

Get All NFTs

GET /api/nft
Authorization: Bearer YOUR_TOKEN

Query Parameters:

  • limit (int, optional): Number of results (default: 50)

  • offset (int, optional): Number to skip (default: 0)

  • type (string, optional): Filter by type (ERC721, ERC1155, SPL, Custom)

  • status (string, optional): Filter by status (Active, Inactive, Listed, Sold)

  • category (string, optional): Filter by category (Art, Gaming, Music, Sports)

  • sortBy (string, optional): Sort field (name, createdAt, price, rarity)

  • sortOrder (string, optional): Sort order (asc/desc, default: desc)

Response:

Get NFT by ID

Parameters:

  • nftId (string): NFT UUID

Response:

Create NFT

Request Body:

Response:

Update NFT

Parameters:

  • nftId (string): NFT UUID

Request Body:

Delete NFT

Parameters:

  • nftId (string): NFT UUID

NFT Operations

Mint NFT

Parameters:

  • nftId (string): NFT UUID

Request Body:

Response:

Transfer NFT

Parameters:

  • nftId (string): NFT UUID

Request Body:

Response:

List NFT for Sale

Parameters:

  • nftId (string): NFT UUID

Request Body:

Response:

Buy NFT

Parameters:

  • nftId (string): NFT UUID

Request Body:

Response:

Get NFT History

Parameters:

  • nftId (string): NFT UUID

Query Parameters:

  • limit (int, optional): Number of results (default: 50)

  • offset (int, optional): Number to skip (default: 0)

  • type (string, optional): Filter by type (Mint, Transfer, Sale, Purchase)

  • startDate (string, optional): Start date (ISO 8601)

  • endDate (string, optional): End date (ISO 8601)

Response:

NFT Analytics

Get NFT Statistics

Query Parameters:

  • timeframe (string, optional): Timeframe (hour, day, week, month)

  • type (string, optional): Filter by NFT type

Response:

Get NFT Performance

Response:

Get NFT Health

Response:

NFT Security

Get NFT Security

Parameters:

  • nftId (string): NFT UUID

Response:

Update NFT Security

Parameters:

  • nftId (string): NFT UUID

Request Body:

Error Responses

NFT Not Found

Invalid NFT Type

Insufficient Balance

NFT Already Listed

Permission Denied


← Previous: Wallet API | Next: ONET API

Last updated