🔥Upload order

POST /chains/{chainId}/orders

The Particle Market currently only supports the Seaport protocol

Uploaded orders only support single NFT purchases

Body Parameters:

  • order <seaport order struct>: An order created through seaport Which contains parameters and signature

Results:

  • <object>

Request example:

const Axios = require("axios");

const projectUuId = 'Your Project Id';
const projectKey = 'Your Project Client Or Server Key';
const chainId = 5; // Goerli Network
const baseUrl = 'https://api-market.particle.network';
const url = `${baseUrl}/chains/${chainId}/orders`;

const order = {}; // create from seaport

(async () => {
    const response = await axios.post(url, {
        order,
    }, {
        params: {
            projectUuid,
            projectKey,
        },
    });

    console.log(JSON.stringify(response.data));
})();

Response example:

{
    "success": true
}

Last updated