APIs & SDKs
Log In
APIs & SDKs

uploadOrder

⤴️ Understanding uploadOrder

  • uploadOrder facilitates the uploading of an order (only single NFT purchases) created through the Seaport protocol. It takes the following path parameter:

    • chainId - integer.

    And the following body parameter:

    • order - Seaport order structure. It should be made through seaport and contain parameters and signature.

Query example

const Axios = require("axios");

const projectUuId = 'Your Project Id';
const projectKey = 'Your Project Client Or Server Key';
const chainId = 5; // Goerli
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));
})();
Language
Click Try It! to start a request and see the response here!