Xerial
  • Intro
    • ⚡Introduction
    • 🏁Getting Started
    • â„šī¸Before We Start: Important
  • 👷Build
    • Build Your Account
    • Create Your Assets
    • Inventory
    • Marketplace
    • User Flow
    • Best Practices
      • Attribute Guide
        • Attribute Use Cases
  • â˜„ī¸Xerial APIs
    • đŸ—ī¸API Authorization
    • 🛅Wallet API
      • Getting Started
      • Custodial Wallets
        • Create User
        • Create Wallet
        • Get Wallets
      • Wallet Management
        • Get Chain Native Currency Balance
        • Get Supported ERC20 Tokens Balances
        • Get Project Inventory
      • Transaction Proccessing
        • Transfer Xerial NFT
        • Transfer Chain Native Currency
        • Transfer ERC20 Token
        • Primary Purchase Xerial NFT
        • Secondary Purchase
        • List Xerial NFT
        • Delist Xerial NFT
        • Execute Custom Transaction
      • Errors Handling
        • Authentication Errors
        • Wallet Management Errors
        • Transaction Proccessing Errors
    • 🛒Marketplace API
      • Get Listed NFTs
      • Get Community Listed Items
      • Get Collections
      • Get Project Data
    • đŸ–ŧī¸NFT API
      • NFT Drop
    • 🌐Xerial Global Wallets
      • Get User Wallet Info
      • Get Global Inventory
      • User Authorization
      • Logout
  • đŸ› ī¸Xerial SDK
    • Wallet SDK
  • đŸŽī¸Gaming Toolkit
    • đŸ•šī¸Xerial Unity SDK Guide
      • âŦ‡ī¸Installation
      • âš™ī¸Configuration
      • Xerial Services
        • Set Up Xerial Services
        • Service Managers
          • Session Manager
          • Wallet Manager
            • UserData Class
              • Account Class
              • Wallet Class
              • Creating UserData Class
          • Inventory Manager
            • NFTs
              • Metadata
              • Attributes
            • NFTInventory Class
            • Creating NFT Inventory
          • MarketPlace Manager
    • Unreal Engine SDKs
Powered by GitBook
On this page
  • Overview
  • Request Body
  • Responses
  • Usage
  1. Xerial APIs
  2. Wallet API
  3. Transaction Proccessing

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.

PreviousPrimary Purchase Xerial NFTNextList Xerial NFT

Last updated 1 year ago

â˜„ī¸
đŸ›