Secondary Purchase

The endpoint "Secondary Purchase" allows you to purchase community listed NFTs in the secondary market.

Overview

Endpoint

  • Method: POST

  • URL: /wallet/{address}/{chain}/secondary-purchase

Request Body

  • Media Type: application/json

  • Example Value:

{
  "marketItemId": 4
}

Responses

Success (Code 200)

{
   "studioAddress":"0xf48b45F70a16FdcCe76d3E494Cb979144D1Ca0A8",
   "project":{
      "address":"0xf48b45F70a16FdcCe76d3E494Cb979144D1Ca0A8",
      "name":"god",
      "description":"lorem ipsum dolor sit amet",
      "category":"MMORPG",
      "tokenName":"",
      "tokenLogo":"",
      "logo":"https://dw34dswplasn9.cloudfront.net/1.jpg",
      "trailer":"3D",
      "downloadLink":"https://god.com",
      "userBanner":"https://dw344e88ccd9566-f721a73816-drift.jpg",
      "domain":"richard",
      "symbol":"GOD",
      "socialMedias":{
         "twitter":"",
         "instagram":"",
         "discord":"",
         "linkedin":"",
         "_id":"659866973ab5dd9fe0e5283b"
      },
      "developer":"659866963ab5dd9fe0e52838",
      "wallet":"65d3d2293a63ccc699e21136",
      "id":"659866973ab5dd9fe0e5283a"
   },
   "collections":[]
}
  • Media Type: application/json

  • Example Value: An object containing the response for the project data.

Usage

  1. Send a GET request to the /api.xerial.io/get_collection_from_project endpoint to obtain the collection of a project.

  2. Include the required 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 to get the studio address from your dashboard.

Last updated