Get Community Listed Items

The endpoint "Get Market Items" allows you to retrieve the items listed by the community in the Market.

Overview

Endpoint

  • Method: GET

  • URL: /marketplace/{projectId}/{chain}/secondary

Request Body

  • Media Type: application/json

  • Example Value:

{
  "projectId": "659d856a864ea2930fbfa6f4",
  "chain": "polygon"
}

Responses

Success (Code 200)

[
  {
    "tokenId": 1,
    "price": 1,
    "seller": "0x7d78B5a8b04151E0741875c2d6e3Cb6A82098Ac5",
    "marketItemId": 38,
    "metadata": {
      "name": "NFt",
      "description": "des",
      "image": "https://xerial-main-bucket.s3.us-east-1.amazonaws.com/46935ee6d252d9510a71cd7452dadcb06aa6ad73433f4c3e642c541c138a436e-game%20banner.jpg",
      "externalUrl": "http://ultra-super-game/dashboard/items/new",
      "animationUrls": [],
      "attributes": [
        {
          "type": "property",
          "name": "Condition",
          "value": "Fairly Worn (FW)"
        },
        {
          "type": "property",
          "name": "Rarity",
          "value": "Legendary"
        }
      ],
      "contract": {
        "address": "0x8007604a4787E127952C275dcAcc0dAEDb2a3B97",
        "name": "collection name",
        "symbol": "cn",
        "image": "https://xerial-main-bucket.s3.us-east-1.amazonaws.com/450ebc6038f65cb00973c284b893eec10c09cde7a1fd05edce21fa06493c9412-nezuko.jpg",
        "description": "collection description",
        "externalUrl": "http://ultra-super-game/dashboard/items/new"
      },
      "maxSupply": "4",
      "edition": 1
    }
  }
]
  • Media Type: application/json

  • Example Value: An object containing the response for the items listed by the community.

Usage

  1. Send a POST request to the marketplace/{projectDomain}/{chain}/secondary endpoint to obtain the items listed by the community.

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

Note: Ensure to get the domain used for your project marketplace and you will receive the items for the selected chain.

Last updated