NFTs

Fetch requested NFTs

Fetch requested NFTs

GET https://style-public-api.vercel.app/api/nfts/get-requested-nfts

Get requested (non-minted) NFTs' data to use it with buyAndMint function of our protocol contract.

Request Body

Name
Type
Description

cursor

integer

Start index of getStakes protocol`s function (as it uses pagination)

amount

integer

Number of viewed indexes of getStakes protocol`s function (as it uses pagination)

chainId

integer

Chain Id to be able to use it cross-chain

metaverseFilter

string | string[]

Using for metaverse filter. Any alone strings are converted to [string]. Currently possible values are: decentranland, sandbox, somnium_space, cryptovoxels, fabwelt. Use empty array to get items from all metaverses.

typeFilter

string | string[]

Using for asset type filter. Any alone strings are converted to [string]. Currently possible values are: AVATAR, WEARABLE, MISC. Use empty array to get items of all types.

subtypeFilter

string | string[]

Using for asset subtype filter. Any alone strings are converted to [string]. Use empty array to get items of all types.

endpoint*

string

Endpoint to fetch blockchain data

[
  {
    "tokenAddress": "0xac4d9e07f348d08ec53288e41f8a4f5b726888a6",
    "tokenId": 69,
    "payment": {
      "value": {
        "type": "BigNumber",
        "hex": "0x8ac7230489e80000"
      },
      "stringValue": "10"
    },
    "paymentToken": {
      "address": "0xddea378a6ddc8afec82c36e9b0078826bf9e68b6",
      "name": "0x",
      "symbol": "ZRX"
    },
    "tailorId": "632422280100cd8980997351",
    "jobId": "632acdea3eb09cff57529ad9",
    "uri": "https://stylexchange.mypinata.cloud/ipfs/QmPXfZkFLs1B2BsbTDvnwUkBKuFMuRbdKBeaJBuq1gwQ13",
    "bidder": "0xb396aedb7e8eea5b29501f5dba173d82458c8e17",
    "signature": "0x9fa4a0015a39ebfc9fea92a8cdc2c5530bcbbe8e211c4db1594dfb67000351a318a2abb72d2dae475d48959058c3bf3e20ad5eb50595be00402a492d4dc9dd7b1b",
    "environment": "0x67701e71F9412Af1BcB2D77897F40139B6Ccc073",
    "metaverseId": 0,
    "adminSignature": "0xd15588e1b080c6b81b26ab46cdf96cfcf1bb02be81d42e7226836e85f252f7201d91c1943131a8219e64834db9343175ca0b8f51d248d61dd415bac1e88d67d41b",
    "asset": {
      "name": "Derivative from IPFS #2",
      "description": "StyleXchange derivative from IPFS #2 for DECENTRALAND",
      "image": "https://stylexchange.mypinata.cloud/ipfs/QmdE18pYr2RE8toGZVC8PJ87ryfZ2u1pL73wX6y4Ansuz6",
      "animation_url": "https://stylexchange.mypinata.cloud/ipfs/bafybeih2ozpap5336dgpxl55foajayfhlfkngjsb5k3azlwukyenwhzp4a"
    },
    "cid": "QmcMZeSnutNC67PFaXid4Nxg16md1hxak4zhZqFCBaWiYi",
    "numberOfDerivatives": 49
  }
]

Last updated