List Xerial NFT

Endpoint allows you to list a specific Xerial NFT from a collection for sale on the Polygon Network.

Overview

Endpoint

  • Method: POST

  • URL: /wallet/{address}/{chain}/list-nft

Parameters

  • address: (Path Parameter): Seller's wallet address (string).

  • chain: (Path Parameter): Blockchain (string). Available values: polygon.

Request Body

  • Media Type: application/json

  • Example Value:

{
  "collectionAddress": "0xf6797c479c7b18de2ea7493291d5f21fede8ff29",
  "tokenId": 2,
  "price": 10
}

Responses

Success (Code 200)

{
  "transactionHash": "0xe2e830fcc13af572c0cbe970e69c2ebd873cc85b9984099a072709f1ee62305b"
}
  • Media Type: application/json

  • Example Value: An object containing the transaction hash for the successful listing.

Usage

  1. Send a POST request to the /api/wallet/{address}/{chain}/list-nft endpoint to list a specific Xerial NFT for sale.

  2. Include the required parameters and request body in the request.

  3. Handle the response accordingly based on success, unauthorized access, forbidden access, not found, method not allowed, precondition failed, or internal server error.

Note: Ensure the seller's wallet address and blockchain chain are valid. Verify the user's authentication status and permissions before listing the NFT.

Last updated