Queries for Marketplaces

marketplace

Returns a single marketplace.

marketplace(id) {
  /* Marketplace fields */
}

Arguments

id Int! -- required

The ID of the Marketplace to return.

Response

Marketplace.* Marketplace

Any requested field from the Marketplace object.

Example

Request

query {
  marketplace(id: 5) {
    id
    name
  }
}

Response

{
  "data": {
    "marketplace": {
      "id": 5,
      "name": "SeaPort"
    }
  }
}

marketplaces

Returns all available marketplaces.

marketplaces {
  /* Marketplace fields */
}

Arguments

None

Response

Marketplace.* [Marketplace!]

A list of Marketplace objects returning any requested fields from the Marketplace object.

Example

Request

query {
  marketplaces {
    id
    name
  }
}

Response

{
  "data": {
    "marketplaces": [
      {
        "id": 2,
        "name": "Decentraland"
      },
      {
        "id": 1,
        "name": "OpenSea"
      },
      {
        "id": 5,
        "name": "SeaPort"
      },
      {
        "id": 6,
        "name": "LooksRare"
      },
      {
        "id": 7,
        "name": "x2y2"
      },
      {
        "id": 8,
        "name": "Foundation"
      },
      {
        "id": 4,
        "name": "Parcel"
      },
      {
        "id": 3,
        "name": "Rarible"
      },
      {
        "id": 11,
        "name": "Coinbase NFT"
      },
      {
        "id": 12,
        "name": "NFTX"
      }
    ]
  }
}