Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.1 KB

File metadata and controls

58 lines (43 loc) · 1.1 KB
description
POST /chains/{chainId}/orders

🔥 Upload order

{% hint style="info" %} The Particle Market currently only supports the Seaport protocol

Uploaded orders only support single NFT purchases {% endhint %}

Body Parameters:

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

Results:

  • <object>

Request example:

{% tabs %} {% tab title="Node.js" %}

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));
})();

{% endtab %} {% endtabs %}

Response example:

{
    "success": true
}