nft-service-api

GraphQL API Reference

GraphQl endpoints for nft-service!

API Endpoints

# devel:
https://nft-service.devel.original.works/graphql
# staging:
https://nft-service.stage.original.works/graphql
# prod:
https://nft-service.original.works/graphql

Queries

balanceOf

Description

🔓 Public

Returns token balance of user

Response

Returns a String!

Arguments

Example

Query

query BalanceOf(
  $collectionContract: String!,
  $tokenId: String!,
  $userId: String!,
  $network: NetworkName!
) {
  balanceOf(
    collectionContract: $collectionContract,
    tokenId: $tokenId,
    userId: $userId,
    network: $network
  )
}

Variables

{
  "collectionContract": "xyz789",
  "tokenId": "xyz789",
  "userId": "xyz789",
  "network": "ropsten"
}

Response

{"data": {"balanceOf": "abc123"}}

Queries

collection

Description

🔓 Public

Returns single collection

Response

Returns a Collection

Arguments

Example

Query

query Collection(
  $network: NetworkName!,
  $id: String!
) {
  collection(
    network: $network,
    id: $id
  ) {
    id
    owner
    tokens {
      id
      tokenId
      collectionContract {
        ...CollectionFragment
      }
      minter
      enterprise {
        ...CollectionEntityFragment
      }
      artist {
        ...CollectionEntityFragment
      }
      amount
      royaltyRecipient
      royaltyNumerator
      owners {
        ...TokenOwnerFragment
      }
      ownersWithMetadata {
        ...OwnerWithMetadataFragment
      }
      listing {
        ...ListingFragment
      }
      purchases {
        ...PurchaseFragment
      }
      tokenURI
      metadata {
        ...NftMetadataDTOFragment
      }
      nftUrl
      coverUrl
      networkName
      createdAt
      updatedAt
    }
    address
    contractURI
    networkName
    metadata {
      id
      userSub
      name
      symbol
      description
      coverImageS3Key
      coverImageS3Url
      coverImageIpfsUrl
      coverImageIpfsHash
      bannerImageS3Key
      bannerImageS3Url
      bannerImageIpfsHash
      bannerImageIpfsUrl
      externalLink
      defaultRoyalties
      defaultRoyaltyRecipient
      metadataIpfsHash
      metadataIpfsUrl
      networkName
      status
    }
    createdAt
    updatedAt
  }
}

Variables

{"network": "ropsten", "id": "xyz789"}

Response

{
  "data": {
    "collection": {
      "id": "abc123",
      "owner": "xyz789",
      "tokens": [Token],
      "address": "abc123",
      "contractURI": "xyz789",
      "networkName": "ropsten",
      "metadata": CollectionMetadataDto,
      "createdAt": "xyz789",
      "updatedAt": "xyz789"
    }
  }
}

Queries

collectionMetadata

Description

🔒 JWT Token

Retrieve collection metadata by id

Response

Returns a CollectionMetadataDto!

Arguments

Example

Query

query CollectionMetadata($id: Float!) {
  collectionMetadata(id: $id) {
    id
    userSub
    name
    symbol
    description
    coverImageS3Key
    coverImageS3Url
    coverImageIpfsUrl
    coverImageIpfsHash
    bannerImageS3Key
    bannerImageS3Url
    bannerImageIpfsHash
    bannerImageIpfsUrl
    externalLink
    defaultRoyalties
    defaultRoyaltyRecipient
    metadataIpfsHash
    metadataIpfsUrl
    networkName
    status
  }
}

Variables

{"id": 123.45}

Response

{
  "data": {
    "collectionMetadata": {
      "id": 123,
      "userSub": "abc123",
      "name": "xyz789",
      "symbol": "xyz789",
      "description": "xyz789",
      "coverImageS3Key": "abc123",
      "coverImageS3Url": "abc123",
      "coverImageIpfsUrl": "abc123",
      "coverImageIpfsHash": "xyz789",
      "bannerImageS3Key": "abc123",
      "bannerImageS3Url": "abc123",
      "bannerImageIpfsHash": "xyz789",
      "bannerImageIpfsUrl": "abc123",
      "externalLink": "xyz789",
      "defaultRoyalties": "abc123",
      "defaultRoyaltyRecipient": "abc123",
      "metadataIpfsHash": "xyz789",
      "metadataIpfsUrl": "abc123",
      "networkName": "ropsten",
      "status": "PENDING_UPLOAD"
    }
  }
}

Queries

collections

Description

🔓 Public

Returns collections

Response

Returns [Collection!]!

Arguments

Example

Query

query Collections($input: CollectionsInput!) {
  collections(input: $input) {
    id
    owner
    tokens {
      id
      tokenId
      collectionContract {
        ...CollectionFragment
      }
      minter
      enterprise {
        ...CollectionEntityFragment
      }
      artist {
        ...CollectionEntityFragment
      }
      amount
      royaltyRecipient
      royaltyNumerator
      owners {
        ...TokenOwnerFragment
      }
      ownersWithMetadata {
        ...OwnerWithMetadataFragment
      }
      listing {
        ...ListingFragment
      }
      purchases {
        ...PurchaseFragment
      }
      tokenURI
      metadata {
        ...NftMetadataDTOFragment
      }
      nftUrl
      coverUrl
      networkName
      createdAt
      updatedAt
    }
    address
    contractURI
    networkName
    metadata {
      id
      userSub
      name
      symbol
      description
      coverImageS3Key
      coverImageS3Url
      coverImageIpfsUrl
      coverImageIpfsHash
      bannerImageS3Key
      bannerImageS3Url
      bannerImageIpfsHash
      bannerImageIpfsUrl
      externalLink
      defaultRoyalties
      defaultRoyaltyRecipient
      metadataIpfsHash
      metadataIpfsUrl
      networkName
      status
    }
    createdAt
    updatedAt
  }
}

Variables

{"input": CollectionsInput}

Response

{
  "data": {
    "collections": [
      {
        "id": "abc123",
        "owner": "xyz789",
        "tokens": [Token],
        "address": "abc123",
        "contractURI": "xyz789",
        "networkName": "ropsten",
        "metadata": CollectionMetadataDto,
        "createdAt": "xyz789",
        "updatedAt": "xyz789"
      }
    ]
  }
}

Queries

currentPerson

Description

🔒 JWT Token

Returns person from the context

Response

Returns a PersonDto!

Example

Query

query CurrentPerson {
  currentPerson {
    id
    walletAddress
    smartWalletAddress
    username
    avatarS3Key
    avatarUrl
  }
}

Response

{
  "data": {
    "currentPerson": {
      "id": "xyz789",
      "walletAddress": "xyz789",
      "smartWalletAddress": "abc123",
      "username": "xyz789",
      "avatarS3Key": "abc123",
      "avatarUrl": "xyz789"
    }
  }
}

Queries

fees

Description

🔓 Public

Returns market fees

Response

Returns a Fees!

Arguments

Example

Query

query Fees($network: NetworkName!) {
  fees(network: $network) {
    mintingFee
    sellingFee
  }
}

Variables

{"network": "ropsten"}

Response

{
  "data": {
    "fees": {
      "mintingFee": "xyz789",
      "sellingFee": "abc123"
    }
  }
}

Queries

listCollectionMetadata

Description

🔒 JWT Token

Returns list of collection metadata

Response

Returns a CollectionMetadataListResDTO!

Arguments

Example

Query

query ListCollectionMetadata($pagination: PaginationParams!) {
  listCollectionMetadata(pagination: $pagination) {
    items {
      id
      userSub
      name
      symbol
      description
      coverImageS3Key
      coverImageS3Url
      coverImageIpfsUrl
      coverImageIpfsHash
      bannerImageS3Key
      bannerImageS3Url
      bannerImageIpfsHash
      bannerImageIpfsUrl
      externalLink
      defaultRoyalties
      defaultRoyaltyRecipient
      metadataIpfsHash
      metadataIpfsUrl
      networkName
      status
    }
    count
  }
}

Variables

{"pagination": PaginationParams}

Response

{
  "data": {
    "listCollectionMetadata": {
      "items": [CollectionMetadataDto],
      "count": 987.65
    }
  }
}

Queries

listMetadata

Description

🔒 JWT Token

Returns list of NFT metadata

Response

Returns a NftMetadataListResDTO!

Arguments

Example

Query

query ListMetadata($pagination: PaginationParams!) {
  listMetadata(pagination: $pagination) {
    items {
      id
      fileName
      title
      description
      artistId
      fileType
      networkName
      backgroundColor
      externalUrl
      youtubeUrl
      attributes {
        ...NftMetadataAttributeObjectFragment
      }
    }
    count
  }
}

Variables

{"pagination": PaginationParams}

Response

{
  "data": {
    "listMetadata": {
      "items": [NftMetadataDraftResDTO],
      "count": 987.65
    }
  }
}

Queries

metadata

Description

🔒 JWT Token

Retrieve metadata by id

Response

Returns a NftMetadataDTO!

Arguments

Example

Query

query Metadata($id: Float!) {
  metadata(id: $id) {
    id
    userSub
    title
    description
    artistId
    fileType
    networkName
    s3Key
    s3CoverKey
    ipfsNftUrl
    ipfsCoverUrl
    ipfsMetadataUrl
    ipfsNftHash
    ipfsCoverHash
    ipfsMetadataHash
    status
    backgroundColor
    externalUrl
    youtubeUrl
    attributes {
      value
      traitType
      displayType
    }
    ipfsNftPublicUrl
    ipfsCoverPublicUrl
    ipfsMetadataPublicUrl
  }
}

Variables

{"id": 123.45}

Response

{
  "data": {
    "metadata": {
      "id": 123,
      "userSub": "xyz789",
      "title": "abc123",
      "description": "xyz789",
      "artistId": "xyz789",
      "fileType": "IMAGE",
      "networkName": "ropsten",
      "s3Key": "xyz789",
      "s3CoverKey": "xyz789",
      "ipfsNftUrl": "xyz789",
      "ipfsCoverUrl": "abc123",
      "ipfsMetadataUrl": "xyz789",
      "ipfsNftHash": "xyz789",
      "ipfsCoverHash": "xyz789",
      "ipfsMetadataHash": "abc123",
      "status": "PENDING_UPLOAD",
      "backgroundColor": "abc123",
      "externalUrl": "xyz789",
      "youtubeUrl": "abc123",
      "attributes": [NftMetadataAttributeObject],
      "ipfsNftPublicUrl": "abc123",
      "ipfsCoverPublicUrl": "abc123",
      "ipfsMetadataPublicUrl": "xyz789"
    }
  }
}

Queries

person

Description

🔓 Public

Returns single person

Response

Returns a PersonDto

Arguments

Example

Query

query Person($identifier: PersonIdentifier!) {
  person(identifier: $identifier) {
    id
    walletAddress
    smartWalletAddress
    username
    avatarS3Key
    avatarUrl
  }
}

Variables

{"identifier": PersonIdentifier}

Response

{
  "data": {
    "person": {
      "id": "xyz789",
      "walletAddress": "xyz789",
      "smartWalletAddress": "xyz789",
      "username": "xyz789",
      "avatarS3Key": "abc123",
      "avatarUrl": "xyz789"
    }
  }
}

Queries

persons

Description

🔓 Public

Returns persons

Response

Returns a Persons!

Arguments

Example

Query

query Persons($pagination: PaginationParams!) {
  persons(pagination: $pagination) {
    items {
      id
      walletAddress
      smartWalletAddress
      username
      avatarS3Key
      avatarUrl
    }
    count
  }
}

Variables

{"pagination": PaginationParams}

Response

{
  "data": {
    "persons": {"items": [PersonDto], "count": 123.45}
  }
}

Queries

token

Description

🔓 Public

Returns single token

Response

Returns a Token

Arguments

Example

Query

query Token(
  $network: NetworkName!,
  $id: String!
) {
  token(
    network: $network,
    id: $id
  ) {
    id
    tokenId
    collectionContract {
      id
      owner
      tokens {
        ...TokenFragment
      }
      address
      contractURI
      networkName
      metadata {
        ...CollectionMetadataDtoFragment
      }
      createdAt
      updatedAt
    }
    minter
    enterprise {
      id
      type
      entityUri
      name
      description
      avatarUrl
      bannerUrl
      createdAt
      updatedAt
    }
    artist {
      id
      type
      entityUri
      name
      description
      avatarUrl
      bannerUrl
      createdAt
      updatedAt
    }
    amount
    royaltyRecipient
    royaltyNumerator
    owners {
      id
      owner {
        ...OwnerFragment
      }
      amountOwned
      amountDeposited
    }
    ownersWithMetadata {
      amountOwned
      amountDeposited
      id
      walletAddress
      smartWalletAddress
      username
      avatarS3Key
      avatarUrl
    }
    listing {
      id
      onSale
      seller {
        ...OwnerFragment
      }
      salePrice
      amountListed
      amountRemaining
      createdAt
      updatedAt
    }
    purchases {
      id
      amount
      salePrice
      value
      buyer {
        ...OwnerFragment
      }
      createdAt
    }
    tokenURI
    metadata {
      id
      userSub
      title
      description
      artistId
      fileType
      networkName
      s3Key
      s3CoverKey
      ipfsNftUrl
      ipfsCoverUrl
      ipfsMetadataUrl
      ipfsNftHash
      ipfsCoverHash
      ipfsMetadataHash
      status
      backgroundColor
      externalUrl
      youtubeUrl
      attributes {
        ...NftMetadataAttributeObjectFragment
      }
      ipfsNftPublicUrl
      ipfsCoverPublicUrl
      ipfsMetadataPublicUrl
    }
    nftUrl
    coverUrl
    networkName
    createdAt
    updatedAt
  }
}

Variables

{"network": "ropsten", "id": "xyz789"}

Response

{
  "data": {
    "token": {
      "id": "abc123",
      "tokenId": "abc123",
      "collectionContract": Collection,
      "minter": "abc123",
      "enterprise": CollectionEntity,
      "artist": CollectionEntity,
      "amount": "abc123",
      "royaltyRecipient": "xyz789",
      "royaltyNumerator": "xyz789",
      "owners": [TokenOwner],
      "ownersWithMetadata": [OwnerWithMetadata],
      "listing": Listing,
      "purchases": [Purchase],
      "tokenURI": "xyz789",
      "metadata": NftMetadataDTO,
      "nftUrl": "xyz789",
      "coverUrl": "abc123",
      "networkName": "ropsten",
      "createdAt": "abc123",
      "updatedAt": "xyz789"
    }
  }
}

Queries

tokens

Description

🔓 Public

Returns tokens

Response

Returns [Token!]!

Arguments

Example

Query

query Tokens($input: tokensInput!) {
  tokens(input: $input) {
    id
    tokenId
    collectionContract {
      id
      owner
      tokens {
        ...TokenFragment
      }
      address
      contractURI
      networkName
      metadata {
        ...CollectionMetadataDtoFragment
      }
      createdAt
      updatedAt
    }
    minter
    enterprise {
      id
      type
      entityUri
      name
      description
      avatarUrl
      bannerUrl
      createdAt
      updatedAt
    }
    artist {
      id
      type
      entityUri
      name
      description
      avatarUrl
      bannerUrl
      createdAt
      updatedAt
    }
    amount
    royaltyRecipient
    royaltyNumerator
    owners {
      id
      owner {
        ...OwnerFragment
      }
      amountOwned
      amountDeposited
    }
    ownersWithMetadata {
      amountOwned
      amountDeposited
      id
      walletAddress
      smartWalletAddress
      username
      avatarS3Key
      avatarUrl
    }
    listing {
      id
      onSale
      seller {
        ...OwnerFragment
      }
      salePrice
      amountListed
      amountRemaining
      createdAt
      updatedAt
    }
    purchases {
      id
      amount
      salePrice
      value
      buyer {
        ...OwnerFragment
      }
      createdAt
    }
    tokenURI
    metadata {
      id
      userSub
      title
      description
      artistId
      fileType
      networkName
      s3Key
      s3CoverKey
      ipfsNftUrl
      ipfsCoverUrl
      ipfsMetadataUrl
      ipfsNftHash
      ipfsCoverHash
      ipfsMetadataHash
      status
      backgroundColor
      externalUrl
      youtubeUrl
      attributes {
        ...NftMetadataAttributeObjectFragment
      }
      ipfsNftPublicUrl
      ipfsCoverPublicUrl
      ipfsMetadataPublicUrl
    }
    nftUrl
    coverUrl
    networkName
    createdAt
    updatedAt
  }
}

Variables

{"input": tokensInput}

Response

{
  "data": {
    "tokens": [
      {
        "id": "xyz789",
        "tokenId": "xyz789",
        "collectionContract": Collection,
        "minter": "abc123",
        "enterprise": CollectionEntity,
        "artist": CollectionEntity,
        "amount": "xyz789",
        "royaltyRecipient": "abc123",
        "royaltyNumerator": "xyz789",
        "owners": [TokenOwner],
        "ownersWithMetadata": [OwnerWithMetadata],
        "listing": Listing,
        "purchases": [Purchase],
        "tokenURI": "xyz789",
        "metadata": NftMetadataDTO,
        "nftUrl": "abc123",
        "coverUrl": "abc123",
        "networkName": "ropsten",
        "createdAt": "xyz789",
        "updatedAt": "xyz789"
      }
    ]
  }
}

Mutations

createAvatarUrl

Description

🔒 JWT Token

Creates Avatar URL

Response

Returns an AvatarLinkResDTO!

Arguments

Example

Query

mutation CreateAvatarUrl($avatarLink: AvatarLinkReqDTO!) {
  createAvatarUrl(avatarLink: $avatarLink) {
    avatarUploadUrl
  }
}

Variables

{"avatarLink": AvatarLinkReqDTO}

Response

{
  "data": {
    "createAvatarUrl": {
      "avatarUploadUrl": "xyz789"
    }
  }
}

Mutations

createCollectionAssetsUploadUrl

Description

🔒 JWT Token

Creates Metadata URL

Response

Returns a CollectionMetadataLinkResDTO!

Arguments

Example

Query

mutation CreateCollectionAssetsUploadUrl(
  $collectionMetadataLink: CollectionMetadataLinkReqDTO!,
  $id: Float!
) {
  createCollectionAssetsUploadUrl(
    collectionMetadataLink: $collectionMetadataLink,
    id: $id
  ) {
    coverUploadUrl
    bannerUploadUrl
  }
}

Variables

{
  "collectionMetadataLink": CollectionMetadataLinkReqDTO,
  "id": 123.45
}

Response

{
  "data": {
    "createCollectionAssetsUploadUrl": {
      "coverUploadUrl": "abc123",
      "bannerUploadUrl": "abc123"
    }
  }
}

Mutations

createUrl

Description

🔒 JWT Token

Creates Metadata URL

Response

Returns a NftMetadataLinkResDTO!

Arguments

Example

Query

mutation CreateUrl(
  $nftMetadataLink: NftMetadataLinkReqDTO!,
  $id: Float!
) {
  createUrl(
    nftMetadataLink: $nftMetadataLink,
    id: $id
  ) {
    uploadUrl
    coverUploadUrl
  }
}

Variables

{"nftMetadataLink": NftMetadataLinkReqDTO, "id": 123.45}

Response

{
  "data": {
    "createUrl": {
      "uploadUrl": "abc123",
      "coverUploadUrl": "xyz789"
    }
  }
}

Mutations

saveCollectionDraft

Description

🔒 JWT Token

Save collection metadata as a draft. Does not deploy an NFT contract. You can edit the data.

Response

Returns a CollectionMetadataDto!

Arguments

Example

Query

mutation SaveCollectionDraft($collectionMetadataDraft: CollectionMetadataDraftReqDTO!) {
  saveCollectionDraft(collectionMetadataDraft: $collectionMetadataDraft) {
    id
    userSub
    name
    symbol
    description
    coverImageS3Key
    coverImageS3Url
    coverImageIpfsUrl
    coverImageIpfsHash
    bannerImageS3Key
    bannerImageS3Url
    bannerImageIpfsHash
    bannerImageIpfsUrl
    externalLink
    defaultRoyalties
    defaultRoyaltyRecipient
    metadataIpfsHash
    metadataIpfsUrl
    networkName
    status
  }
}

Variables

{"collectionMetadataDraft": CollectionMetadataDraftReqDTO}

Response

{
  "data": {
    "saveCollectionDraft": {
      "id": 987,
      "userSub": "abc123",
      "name": "abc123",
      "symbol": "abc123",
      "description": "xyz789",
      "coverImageS3Key": "abc123",
      "coverImageS3Url": "xyz789",
      "coverImageIpfsUrl": "abc123",
      "coverImageIpfsHash": "xyz789",
      "bannerImageS3Key": "xyz789",
      "bannerImageS3Url": "abc123",
      "bannerImageIpfsHash": "abc123",
      "bannerImageIpfsUrl": "abc123",
      "externalLink": "abc123",
      "defaultRoyalties": "abc123",
      "defaultRoyaltyRecipient": "xyz789",
      "metadataIpfsHash": "xyz789",
      "metadataIpfsUrl": "xyz789",
      "networkName": "ropsten",
      "status": "PENDING_UPLOAD"
    }
  }
}

Mutations

saveDraft

Description

🔒 JWT Token

Save nft metadata as a draft. Does not create a token. You can edit the data.

Response

Returns a NftMetadataDraftResDTO!

Arguments

Example

Query

mutation SaveDraft($nftMetadataDraft: NftMetadataDraftReqDTO!) {
  saveDraft(nftMetadataDraft: $nftMetadataDraft) {
    id
    fileName
    title
    description
    artistId
    fileType
    networkName
    backgroundColor
    externalUrl
    youtubeUrl
    attributes {
      value
      traitType
      displayType
    }
  }
}

Variables

{"nftMetadataDraft": NftMetadataDraftReqDTO}

Response

{
  "data": {
    "saveDraft": {
      "id": 123.45,
      "fileName": "xyz789",
      "title": "abc123",
      "description": "abc123",
      "artistId": "abc123",
      "fileType": "IMAGE",
      "networkName": "ropsten",
      "backgroundColor": "abc123",
      "externalUrl": "xyz789",
      "youtubeUrl": "abc123",
      "attributes": [NftMetadataAttributeObject]
    }
  }
}

Mutations

updateCollectionDraft

Description

🔒 JWT Token

Updates collection metadata draft

Response

Returns a CollectionMetadataDto!

Arguments

Example

Query

mutation UpdateCollectionDraft(
  $collectionMetadataDraft: CollectionMetadataDraftReqDTO!,
  $id: Float!
) {
  updateCollectionDraft(
    collectionMetadataDraft: $collectionMetadataDraft,
    id: $id
  ) {
    id
    userSub
    name
    symbol
    description
    coverImageS3Key
    coverImageS3Url
    coverImageIpfsUrl
    coverImageIpfsHash
    bannerImageS3Key
    bannerImageS3Url
    bannerImageIpfsHash
    bannerImageIpfsUrl
    externalLink
    defaultRoyalties
    defaultRoyaltyRecipient
    metadataIpfsHash
    metadataIpfsUrl
    networkName
    status
  }
}

Variables

{
  "collectionMetadataDraft": CollectionMetadataDraftReqDTO,
  "id": 123.45
}

Response

{
  "data": {
    "updateCollectionDraft": {
      "id": 123,
      "userSub": "xyz789",
      "name": "abc123",
      "symbol": "abc123",
      "description": "abc123",
      "coverImageS3Key": "xyz789",
      "coverImageS3Url": "xyz789",
      "coverImageIpfsUrl": "abc123",
      "coverImageIpfsHash": "abc123",
      "bannerImageS3Key": "xyz789",
      "bannerImageS3Url": "xyz789",
      "bannerImageIpfsHash": "abc123",
      "bannerImageIpfsUrl": "abc123",
      "externalLink": "xyz789",
      "defaultRoyalties": "abc123",
      "defaultRoyaltyRecipient": "xyz789",
      "metadataIpfsHash": "abc123",
      "metadataIpfsUrl": "xyz789",
      "networkName": "ropsten",
      "status": "PENDING_UPLOAD"
    }
  }
}

Mutations

updateDraft

Description

🔒 JWT Token

Updates nft metadata draft

Response

Returns a NftMetadataDraftResDTO!

Arguments

Example

Query

mutation UpdateDraft(
  $updateNFTMetadataDraft: NftMetadataDraftReqDTO!,
  $id: Float!
) {
  updateDraft(
    updateNFTMetadataDraft: $updateNFTMetadataDraft,
    id: $id
  ) {
    id
    fileName
    title
    description
    artistId
    fileType
    networkName
    backgroundColor
    externalUrl
    youtubeUrl
    attributes {
      value
      traitType
      displayType
    }
  }
}

Variables

{
  "updateNFTMetadataDraft": NftMetadataDraftReqDTO,
  "id": 987.65
}

Response

{
  "data": {
    "updateDraft": {
      "id": 123.45,
      "fileName": "abc123",
      "title": "xyz789",
      "description": "abc123",
      "artistId": "abc123",
      "fileType": "IMAGE",
      "networkName": "ropsten",
      "backgroundColor": "abc123",
      "externalUrl": "abc123",
      "youtubeUrl": "xyz789",
      "attributes": [NftMetadataAttributeObject]
    }
  }
}

Mutations

updatePerson

Description

🔒 JWT Token

Updates person

Response

Returns a PersonDto!

Arguments

Example

Query

mutation UpdatePerson($updatePerson: UpdatePerson!) {
  updatePerson(updatePerson: $updatePerson) {
    id
    walletAddress
    smartWalletAddress
    username
    avatarS3Key
    avatarUrl
  }
}

Variables

{"updatePerson": UpdatePerson}

Response

{
  "data": {
    "updatePerson": {
      "id": "abc123",
      "walletAddress": "xyz789",
      "smartWalletAddress": "abc123",
      "username": "xyz789",
      "avatarS3Key": "abc123",
      "avatarUrl": "xyz789"
    }
  }
}

Types

AddressResolverType

Values

Example

"PERSON_ID"

Types

AvatarLinkReqDTO

Fields

Example

{
  "fileName": "abc123",
  "contentType": "xyz789"
}

Types

AvatarLinkResDTO

Fields

Example

{"avatarUploadUrl": "xyz789"}

Types

BigInt

Example

{}

Types

BlockChangedFilter

Fields

Example

{"number_gte": 123}

Types

Block_height

Fields

Example

{"hash": Bytes, "number": 987, "number_gte": 987}

Types

Boolean

Description

The Boolean scalar type represents true or false.

Example

true

Types

Bytes

Example

Bytes

Types

Collection

Fields

Example

{
  "id": "xyz789",
  "owner": "abc123",
  "tokens": [Token],
  "address": "xyz789",
  "contractURI": "xyz789",
  "networkName": "ropsten",
  "metadata": CollectionMetadataDto,
  "createdAt": "abc123",
  "updatedAt": "abc123"
}

Types

CollectionContract_filter

Fields

Example

{
  "_change_block": BlockChangedFilter,
  "address": Bytes,
  "address_contains": Bytes,
  "address_gt": Bytes,
  "address_gte": Bytes,
  "address_in": [Bytes],
  "address_lt": Bytes,
  "address_lte": Bytes,
  "address_not": Bytes,
  "address_not_contains": Bytes,
  "address_not_in": [Bytes],
  "and": [CollectionContract_filter],
  "contractURI": "xyz789",
  "contractURI_contains": "abc123",
  "contractURI_contains_nocase": "abc123",
  "contractURI_ends_with": "xyz789",
  "contractURI_ends_with_nocase": "xyz789",
  "contractURI_gt": "abc123",
  "contractURI_gte": "abc123",
  "contractURI_in": ["abc123"],
  "contractURI_lt": "xyz789",
  "contractURI_lte": "xyz789",
  "contractURI_not": "abc123",
  "contractURI_not_contains": "abc123",
  "contractURI_not_contains_nocase": "abc123",
  "contractURI_not_ends_with": "xyz789",
  "contractURI_not_ends_with_nocase": "abc123",
  "contractURI_not_in": ["xyz789"],
  "contractURI_not_starts_with": "abc123",
  "contractURI_not_starts_with_nocase": "xyz789",
  "contractURI_starts_with": "xyz789",
  "contractURI_starts_with_nocase": "xyz789",
  "createdAt": "abc123",
  "createdAt_contains": "xyz789",
  "createdAt_contains_nocase": "abc123",
  "createdAt_ends_with": "abc123",
  "createdAt_ends_with_nocase": "xyz789",
  "createdAt_gt": "xyz789",
  "createdAt_gte": "xyz789",
  "createdAt_in": ["abc123"],
  "createdAt_lt": "xyz789",
  "createdAt_lte": "xyz789",
  "createdAt_not": "abc123",
  "createdAt_not_contains": "abc123",
  "createdAt_not_contains_nocase": "xyz789",
  "createdAt_not_ends_with": "abc123",
  "createdAt_not_ends_with_nocase": "xyz789",
  "createdAt_not_in": ["abc123"],
  "createdAt_not_starts_with": "abc123",
  "createdAt_not_starts_with_nocase": "xyz789",
  "createdAt_starts_with": "abc123",
  "createdAt_starts_with_nocase": "xyz789",
  "id": "4",
  "id_gt": "4",
  "id_gte": "4",
  "id_in": [4],
  "id_lt": "4",
  "id_lte": 4,
  "id_not": "4",
  "id_not_in": [4],
  "or": [CollectionContract_filter],
  "owner": Bytes,
  "owner_contains": Bytes,
  "owner_gt": Bytes,
  "owner_gte": Bytes,
  "owner_in": [Bytes],
  "owner_lt": Bytes,
  "owner_lte": Bytes,
  "owner_not": Bytes,
  "owner_not_contains": Bytes,
  "owner_not_in": [Bytes],
  "tokens_": Token_filter,
  "updatedAt": "xyz789",
  "updatedAt_contains": "xyz789",
  "updatedAt_contains_nocase": "abc123",
  "updatedAt_ends_with": "xyz789",
  "updatedAt_ends_with_nocase": "xyz789",
  "updatedAt_gt": "abc123",
  "updatedAt_gte": "abc123",
  "updatedAt_in": ["abc123"],
  "updatedAt_lt": "abc123",
  "updatedAt_lte": "xyz789",
  "updatedAt_not": "xyz789",
  "updatedAt_not_contains": "xyz789",
  "updatedAt_not_contains_nocase": "xyz789",
  "updatedAt_not_ends_with": "abc123",
  "updatedAt_not_ends_with_nocase": "abc123",
  "updatedAt_not_in": ["abc123"],
  "updatedAt_not_starts_with": "xyz789",
  "updatedAt_not_starts_with_nocase": "abc123",
  "updatedAt_starts_with": "abc123",
  "updatedAt_starts_with_nocase": "abc123"
}

Types

CollectionContract_orderBy

Values

Example

"address"

Types

CollectionEntity

Description

represents an element of the hierarchy within the enterprise.

Fields

Example

{
  "id": "4",
  "type": "ENTERPRISE",
  "entityUri": "xyz789",
  "name": "xyz789",
  "description": "xyz789",
  "avatarUrl": "abc123",
  "bannerUrl": "xyz789",
  "createdAt": "abc123",
  "updatedAt": "abc123"
}

Types

CollectionEntityType

Values

Example

"ENTERPRISE"

Types

CollectionMetadataDraftReqDTO

Fields

Example

{
  "name": "abc123",
  "symbol": "xyz789",
  "description": "xyz789",
  "externalLink": "xyz789",
  "defaultRoyalties": "abc123",
  "defaultRoyaltyRecipient": "abc123",
  "networkName": "ropsten"
}

Types

CollectionMetadataDto

Fields

Example

{
  "id": 123,
  "userSub": "abc123",
  "name": "xyz789",
  "symbol": "abc123",
  "description": "xyz789",
  "coverImageS3Key": "xyz789",
  "coverImageS3Url": "abc123",
  "coverImageIpfsUrl": "abc123",
  "coverImageIpfsHash": "abc123",
  "bannerImageS3Key": "abc123",
  "bannerImageS3Url": "xyz789",
  "bannerImageIpfsHash": "abc123",
  "bannerImageIpfsUrl": "xyz789",
  "externalLink": "abc123",
  "defaultRoyalties": "xyz789",
  "defaultRoyaltyRecipient": "xyz789",
  "metadataIpfsHash": "abc123",
  "metadataIpfsUrl": "abc123",
  "networkName": "ropsten",
  "status": "PENDING_UPLOAD"
}

Types

CollectionMetadataLinkReqDTO

Fields

Example

{
  "coverFileName": "xyz789",
  "coverFileMimeType": "abc123",
  "bannerFileName": "xyz789",
  "bannerFileMimeType": "xyz789"
}

Types

CollectionMetadataLinkResDTO

Fields

Example

{
  "coverUploadUrl": "xyz789",
  "bannerUploadUrl": "abc123"
}

Types

CollectionMetadataListResDTO

Fields

Example

{"items": [CollectionMetadataDto], "count": 987.65}

Types

CollectionsInput

Fields

Example

{
  "network": "ropsten",
  "ownedBy": OwnedBy,
  "queryParams": collectionContractsQueryArgs
}

Types

DisplayType

Values

Example

"DATE"

Types

Fees

Fields

Example

{
  "mintingFee": "abc123",
  "sellingFee": "abc123"
}

Types

FileStatus

Values

Example

"PENDING_UPLOAD"

Types

FileType

Values

Example

"IMAGE"

Types

Float

Description

The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

Example

987.65

Types

ID

Description

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Example

"4"

Types

Int

Description

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Example

123

Types

Listing

Fields

Example

{
  "id": "xyz789",
  "onSale": false,
  "seller": Owner,
  "salePrice": "abc123",
  "amountListed": "abc123",
  "amountRemaining": "abc123",
  "createdAt": "xyz789",
  "updatedAt": "abc123"
}

Types

Listing_filter

Fields

Example

{
  "_change_block": BlockChangedFilter,
  "amountListed": {},
  "amountListed_gt": {},
  "amountListed_gte": {},
  "amountListed_in": [{}],
  "amountListed_lt": {},
  "amountListed_lte": {},
  "amountListed_not": {},
  "amountListed_not_in": [{}],
  "amountRemaining": {},
  "amountRemaining_gt": {},
  "amountRemaining_gte": {},
  "amountRemaining_in": [{}],
  "amountRemaining_lt": {},
  "amountRemaining_lte": {},
  "amountRemaining_not": {},
  "amountRemaining_not_in": [{}],
  "and": [Listing_filter],
  "createdAt": "xyz789",
  "createdAt_contains": "abc123",
  "createdAt_contains_nocase": "abc123",
  "createdAt_ends_with": "abc123",
  "createdAt_ends_with_nocase": "xyz789",
  "createdAt_gt": "abc123",
  "createdAt_gte": "xyz789",
  "createdAt_in": ["xyz789"],
  "createdAt_lt": "xyz789",
  "createdAt_lte": "xyz789",
  "createdAt_not": "abc123",
  "createdAt_not_contains": "abc123",
  "createdAt_not_contains_nocase": "abc123",
  "createdAt_not_ends_with": "abc123",
  "createdAt_not_ends_with_nocase": "xyz789",
  "createdAt_not_in": ["abc123"],
  "createdAt_not_starts_with": "xyz789",
  "createdAt_not_starts_with_nocase": "xyz789",
  "createdAt_starts_with": "abc123",
  "createdAt_starts_with_nocase": "abc123",
  "id": "4",
  "id_gt": 4,
  "id_gte": "4",
  "id_in": [4],
  "id_lt": "4",
  "id_lte": 4,
  "id_not": "4",
  "id_not_in": [4],
  "onSale": true,
  "onSale_in": [true],
  "onSale_not": true,
  "onSale_not_in": [false],
  "or": [Listing_filter],
  "salePrice": {},
  "salePrice_gt": {},
  "salePrice_gte": {},
  "salePrice_in": [{}],
  "salePrice_lt": {},
  "salePrice_lte": {},
  "salePrice_not": {},
  "salePrice_not_in": [{}],
  "seller": "xyz789",
  "seller_": Owner_filter,
  "seller_contains": "xyz789",
  "seller_contains_nocase": "xyz789",
  "seller_ends_with": "xyz789",
  "seller_ends_with_nocase": "xyz789",
  "seller_gt": "xyz789",
  "seller_gte": "abc123",
  "seller_in": ["xyz789"],
  "seller_lt": "xyz789",
  "seller_lte": "xyz789",
  "seller_not": "xyz789",
  "seller_not_contains": "xyz789",
  "seller_not_contains_nocase": "abc123",
  "seller_not_ends_with": "abc123",
  "seller_not_ends_with_nocase": "xyz789",
  "seller_not_in": ["abc123"],
  "seller_not_starts_with": "abc123",
  "seller_not_starts_with_nocase": "abc123",
  "seller_starts_with": "xyz789",
  "seller_starts_with_nocase": "abc123",
  "token": "abc123",
  "token_": Token_filter,
  "token_contains": "abc123",
  "token_contains_nocase": "xyz789",
  "token_ends_with": "xyz789",
  "token_ends_with_nocase": "xyz789",
  "token_gt": "xyz789",
  "token_gte": "xyz789",
  "token_in": ["abc123"],
  "token_lt": "abc123",
  "token_lte": "abc123",
  "token_not": "xyz789",
  "token_not_contains": "xyz789",
  "token_not_contains_nocase": "xyz789",
  "token_not_ends_with": "xyz789",
  "token_not_ends_with_nocase": "xyz789",
  "token_not_in": ["xyz789"],
  "token_not_starts_with": "xyz789",
  "token_not_starts_with_nocase": "abc123",
  "token_starts_with": "xyz789",
  "token_starts_with_nocase": "abc123",
  "updatedAt": "xyz789",
  "updatedAt_contains": "xyz789",
  "updatedAt_contains_nocase": "xyz789",
  "updatedAt_ends_with": "xyz789",
  "updatedAt_ends_with_nocase": "abc123",
  "updatedAt_gt": "xyz789",
  "updatedAt_gte": "xyz789",
  "updatedAt_in": ["abc123"],
  "updatedAt_lt": "abc123",
  "updatedAt_lte": "abc123",
  "updatedAt_not": "xyz789",
  "updatedAt_not_contains": "abc123",
  "updatedAt_not_contains_nocase": "xyz789",
  "updatedAt_not_ends_with": "abc123",
  "updatedAt_not_ends_with_nocase": "abc123",
  "updatedAt_not_in": ["xyz789"],
  "updatedAt_not_starts_with": "xyz789",
  "updatedAt_not_starts_with_nocase": "abc123",
  "updatedAt_starts_with": "xyz789",
  "updatedAt_starts_with_nocase": "abc123"
}

Types

MintedBy

Fields

Example

{"type": "PERSON_ID", "value": "abc123"}

Types

NetworkName

Values

Example

"ropsten"

Types

NftMetadataAttributeInput

Fields

Example

{
  "value": "xyz789",
  "traitType": "xyz789",
  "displayType": "DATE"
}

Types

NftMetadataAttributeObject

Fields

Example

{
  "value": "xyz789",
  "traitType": "abc123",
  "displayType": "DATE"
}

Types

NftMetadataDTO

Fields

Example

{
  "id": 987,
  "userSub": "abc123",
  "title": "abc123",
  "description": "xyz789",
  "artistId": "xyz789",
  "fileType": "IMAGE",
  "networkName": "ropsten",
  "s3Key": "xyz789",
  "s3CoverKey": "abc123",
  "ipfsNftUrl": "xyz789",
  "ipfsCoverUrl": "xyz789",
  "ipfsMetadataUrl": "abc123",
  "ipfsNftHash": "xyz789",
  "ipfsCoverHash": "abc123",
  "ipfsMetadataHash": "xyz789",
  "status": "PENDING_UPLOAD",
  "backgroundColor": "abc123",
  "externalUrl": "xyz789",
  "youtubeUrl": "xyz789",
  "attributes": [NftMetadataAttributeObject],
  "ipfsNftPublicUrl": "xyz789",
  "ipfsCoverPublicUrl": "xyz789",
  "ipfsMetadataPublicUrl": "xyz789"
}

Types

NftMetadataDraftReqDTO

Fields

Example

{
  "backgroundColor": "xyz789",
  "externalUrl": "xyz789",
  "youtubeUrl": "abc123",
  "attributes": [NftMetadataAttributeInput],
  "title": "xyz789",
  "description": "abc123",
  "artistId": "abc123",
  "fileType": "IMAGE",
  "networkName": "ropsten"
}

Types

NftMetadataDraftResDTO

Fields

Example

{
  "id": 123.45,
  "fileName": "xyz789",
  "title": "xyz789",
  "description": "abc123",
  "artistId": "abc123",
  "fileType": "IMAGE",
  "networkName": "ropsten",
  "backgroundColor": "abc123",
  "externalUrl": "xyz789",
  "youtubeUrl": "abc123",
  "attributes": [NftMetadataAttributeObject]
}

Types

NftMetadataLinkReqDTO

Fields

Example

{
  "fileName": "abc123",
  "fileMime": "abc123",
  "coverFileName": "xyz789",
  "coverMime": "abc123"
}

Types

NftMetadataLinkResDTO

Fields

Example

{
  "uploadUrl": "abc123",
  "coverUploadUrl": "xyz789"
}

Types

NftMetadataListResDTO

Fields

Example

{"items": [NftMetadataDraftResDTO], "count": 123.45}

Types

OrderDirection

Description

Defines the order direction, either ascending or descending

Values

Example

"asc"

Types

OwnedBy

Fields

Example

{"type": "PERSON_ID", "value": "abc123"}

Types

Owner

Fields

Example

{"address": "xyz789"}

Types

OwnerWithMetadata

Fields

Example

{
  "amountOwned": "xyz789",
  "amountDeposited": "xyz789",
  "id": "xyz789",
  "walletAddress": "xyz789",
  "smartWalletAddress": "abc123",
  "username": "xyz789",
  "avatarS3Key": "xyz789",
  "avatarUrl": "abc123"
}

Types

Owner_filter

Fields

Example

{
  "_change_block": BlockChangedFilter,
  "address": Bytes,
  "address_contains": Bytes,
  "address_gt": Bytes,
  "address_gte": Bytes,
  "address_in": [Bytes],
  "address_lt": Bytes,
  "address_lte": Bytes,
  "address_not": Bytes,
  "address_not_contains": Bytes,
  "address_not_in": [Bytes],
  "and": [Owner_filter],
  "id": "4",
  "id_gt": "4",
  "id_gte": 4,
  "id_in": [4],
  "id_lt": 4,
  "id_lte": 4,
  "id_not": "4",
  "id_not_in": [4],
  "listings_": Listing_filter,
  "or": [Owner_filter],
  "purchases_": Purchase_filter,
  "tokens_": TokenOwner_filter
}

Types

PaginationParams

Fields

Example

{"startId": 987.65, "limit": 123.45}

Types

PersonDto

Fields

Example

{
  "id": "abc123",
  "walletAddress": "abc123",
  "smartWalletAddress": "abc123",
  "username": "abc123",
  "avatarS3Key": "xyz789",
  "avatarUrl": "xyz789"
}

Types

PersonIdentifier

Fields

Example

{
  "id": "xyz789",
  "walletAddress": "xyz789"
}

Types

Persons

Fields

Example

{"items": [PersonDto], "count": 123.45}

Types

Purchase

Fields

Example

{
  "id": "xyz789",
  "amount": "abc123",
  "salePrice": "xyz789",
  "value": "xyz789",
  "buyer": Owner,
  "createdAt": "xyz789"
}

Types

Purchase_filter

Fields

Example

{
  "_change_block": BlockChangedFilter,
  "amount": {},
  "amount_gt": {},
  "amount_gte": {},
  "amount_in": [{}],
  "amount_lt": {},
  "amount_lte": {},
  "amount_not": {},
  "amount_not_in": [{}],
  "and": [Purchase_filter],
  "buyer": "xyz789",
  "buyer_": Owner_filter,
  "buyer_contains": "abc123",
  "buyer_contains_nocase": "abc123",
  "buyer_ends_with": "abc123",
  "buyer_ends_with_nocase": "abc123",
  "buyer_gt": "abc123",
  "buyer_gte": "xyz789",
  "buyer_in": ["xyz789"],
  "buyer_lt": "xyz789",
  "buyer_lte": "abc123",
  "buyer_not": "xyz789",
  "buyer_not_contains": "xyz789",
  "buyer_not_contains_nocase": "xyz789",
  "buyer_not_ends_with": "xyz789",
  "buyer_not_ends_with_nocase": "xyz789",
  "buyer_not_in": ["xyz789"],
  "buyer_not_starts_with": "xyz789",
  "buyer_not_starts_with_nocase": "abc123",
  "buyer_starts_with": "abc123",
  "buyer_starts_with_nocase": "abc123",
  "createdAt": "xyz789",
  "createdAt_contains": "xyz789",
  "createdAt_contains_nocase": "xyz789",
  "createdAt_ends_with": "xyz789",
  "createdAt_ends_with_nocase": "abc123",
  "createdAt_gt": "xyz789",
  "createdAt_gte": "xyz789",
  "createdAt_in": ["abc123"],
  "createdAt_lt": "xyz789",
  "createdAt_lte": "xyz789",
  "createdAt_not": "abc123",
  "createdAt_not_contains": "xyz789",
  "createdAt_not_contains_nocase": "abc123",
  "createdAt_not_ends_with": "abc123",
  "createdAt_not_ends_with_nocase": "abc123",
  "createdAt_not_in": ["xyz789"],
  "createdAt_not_starts_with": "abc123",
  "createdAt_not_starts_with_nocase": "abc123",
  "createdAt_starts_with": "abc123",
  "createdAt_starts_with_nocase": "abc123",
  "id": 4,
  "id_gt": 4,
  "id_gte": "4",
  "id_in": [4],
  "id_lt": 4,
  "id_lte": "4",
  "id_not": 4,
  "id_not_in": ["4"],
  "or": [Purchase_filter],
  "salePrice": {},
  "salePrice_gt": {},
  "salePrice_gte": {},
  "salePrice_in": [{}],
  "salePrice_lt": {},
  "salePrice_lte": {},
  "salePrice_not": {},
  "salePrice_not_in": [{}],
  "token": "xyz789",
  "token_": Token_filter,
  "token_contains": "abc123",
  "token_contains_nocase": "xyz789",
  "token_ends_with": "abc123",
  "token_ends_with_nocase": "xyz789",
  "token_gt": "xyz789",
  "token_gte": "xyz789",
  "token_in": ["abc123"],
  "token_lt": "abc123",
  "token_lte": "xyz789",
  "token_not": "abc123",
  "token_not_contains": "xyz789",
  "token_not_contains_nocase": "xyz789",
  "token_not_ends_with": "abc123",
  "token_not_ends_with_nocase": "abc123",
  "token_not_in": ["abc123"],
  "token_not_starts_with": "abc123",
  "token_not_starts_with_nocase": "xyz789",
  "token_starts_with": "xyz789",
  "token_starts_with_nocase": "abc123",
  "value": {},
  "value_gt": {},
  "value_gte": {},
  "value_in": [{}],
  "value_lt": {},
  "value_lte": {},
  "value_not": {},
  "value_not_in": [{}]
}

Types

String

Description

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Example

"xyz789"

Types

Token

Fields

Example

{
  "id": "abc123",
  "tokenId": "xyz789",
  "collectionContract": Collection,
  "minter": "abc123",
  "enterprise": CollectionEntity,
  "artist": CollectionEntity,
  "amount": "xyz789",
  "royaltyRecipient": "abc123",
  "royaltyNumerator": "xyz789",
  "owners": [TokenOwner],
  "ownersWithMetadata": [OwnerWithMetadata],
  "listing": Listing,
  "purchases": [Purchase],
  "tokenURI": "xyz789",
  "metadata": NftMetadataDTO,
  "nftUrl": "xyz789",
  "coverUrl": "xyz789",
  "networkName": "ropsten",
  "createdAt": "xyz789",
  "updatedAt": "xyz789"
}

Types

TokenOwner

Fields

Example

{
  "id": "abc123",
  "owner": Owner,
  "amountOwned": "abc123",
  "amountDeposited": "xyz789"
}

Types

TokenOwner_filter

Fields

Example

{
  "_change_block": BlockChangedFilter,
  "amountDeposited": {},
  "amountDeposited_gt": {},
  "amountDeposited_gte": {},
  "amountDeposited_in": [{}],
  "amountDeposited_lt": {},
  "amountDeposited_lte": {},
  "amountDeposited_not": {},
  "amountDeposited_not_in": [{}],
  "amountOwned": {},
  "amountOwned_gt": {},
  "amountOwned_gte": {},
  "amountOwned_in": [{}],
  "amountOwned_lt": {},
  "amountOwned_lte": {},
  "amountOwned_not": {},
  "amountOwned_not_in": [{}],
  "and": [TokenOwner_filter],
  "id": "4",
  "id_gt": 4,
  "id_gte": "4",
  "id_in": ["4"],
  "id_lt": "4",
  "id_lte": 4,
  "id_not": "4",
  "id_not_in": [4],
  "or": [TokenOwner_filter],
  "owner": "xyz789",
  "owner_": Owner_filter,
  "owner_contains": "abc123",
  "owner_contains_nocase": "xyz789",
  "owner_ends_with": "xyz789",
  "owner_ends_with_nocase": "abc123",
  "owner_gt": "xyz789",
  "owner_gte": "xyz789",
  "owner_in": ["abc123"],
  "owner_lt": "abc123",
  "owner_lte": "abc123",
  "owner_not": "xyz789",
  "owner_not_contains": "abc123",
  "owner_not_contains_nocase": "xyz789",
  "owner_not_ends_with": "xyz789",
  "owner_not_ends_with_nocase": "xyz789",
  "owner_not_in": ["abc123"],
  "owner_not_starts_with": "abc123",
  "owner_not_starts_with_nocase": "abc123",
  "owner_starts_with": "xyz789",
  "owner_starts_with_nocase": "abc123",
  "token": "abc123",
  "token_": Token_filter,
  "token_contains": "xyz789",
  "token_contains_nocase": "abc123",
  "token_ends_with": "abc123",
  "token_ends_with_nocase": "xyz789",
  "token_gt": "abc123",
  "token_gte": "xyz789",
  "token_in": ["abc123"],
  "token_lt": "abc123",
  "token_lte": "xyz789",
  "token_not": "xyz789",
  "token_not_contains": "xyz789",
  "token_not_contains_nocase": "xyz789",
  "token_not_ends_with": "abc123",
  "token_not_ends_with_nocase": "xyz789",
  "token_not_in": ["xyz789"],
  "token_not_starts_with": "xyz789",
  "token_not_starts_with_nocase": "xyz789",
  "token_starts_with": "xyz789",
  "token_starts_with_nocase": "abc123"
}

Types

Token_filter

Fields

Example

{
  "_change_block": BlockChangedFilter,
  "amount": {},
  "amount_gt": {},
  "amount_gte": {},
  "amount_in": [{}],
  "amount_lt": {},
  "amount_lte": {},
  "amount_not": {},
  "amount_not_in": [{}],
  "and": [Token_filter],
  "collectionContract": "xyz789",
  "collectionContract_": CollectionContract_filter,
  "collectionContract_contains": "abc123",
  "collectionContract_contains_nocase": "abc123",
  "collectionContract_ends_with": "xyz789",
  "collectionContract_ends_with_nocase": "abc123",
  "collectionContract_gt": "abc123",
  "collectionContract_gte": "xyz789",
  "collectionContract_in": ["xyz789"],
  "collectionContract_lt": "xyz789",
  "collectionContract_lte": "abc123",
  "collectionContract_not": "xyz789",
  "collectionContract_not_contains": "abc123",
  "collectionContract_not_contains_nocase": "xyz789",
  "collectionContract_not_ends_with": "xyz789",
  "collectionContract_not_ends_with_nocase": "xyz789",
  "collectionContract_not_in": ["xyz789"],
  "collectionContract_not_starts_with": "xyz789",
  "collectionContract_not_starts_with_nocase": "xyz789",
  "collectionContract_starts_with": "xyz789",
  "collectionContract_starts_with_nocase": "xyz789",
  "createdAt": "xyz789",
  "createdAt_contains": "abc123",
  "createdAt_contains_nocase": "xyz789",
  "createdAt_ends_with": "xyz789",
  "createdAt_ends_with_nocase": "abc123",
  "createdAt_gt": "abc123",
  "createdAt_gte": "abc123",
  "createdAt_in": ["xyz789"],
  "createdAt_lt": "xyz789",
  "createdAt_lte": "abc123",
  "createdAt_not": "xyz789",
  "createdAt_not_contains": "abc123",
  "createdAt_not_contains_nocase": "abc123",
  "createdAt_not_ends_with": "abc123",
  "createdAt_not_ends_with_nocase": "xyz789",
  "createdAt_not_in": ["xyz789"],
  "createdAt_not_starts_with": "abc123",
  "createdAt_not_starts_with_nocase": "xyz789",
  "createdAt_starts_with": "xyz789",
  "createdAt_starts_with_nocase": "xyz789",
  "id": "4",
  "id_gt": "4",
  "id_gte": "4",
  "id_in": ["4"],
  "id_lt": "4",
  "id_lte": "4",
  "id_not": "4",
  "id_not_in": [4],
  "listing_": Listing_filter,
  "minter": Bytes,
  "minter_contains": Bytes,
  "minter_gt": Bytes,
  "minter_gte": Bytes,
  "minter_in": [Bytes],
  "minter_lt": Bytes,
  "minter_lte": Bytes,
  "minter_not": Bytes,
  "minter_not_contains": Bytes,
  "minter_not_in": [Bytes],
  "or": [Token_filter],
  "owners_": TokenOwner_filter,
  "purchases_": Purchase_filter,
  "royaltyNumerator": {},
  "royaltyNumerator_gt": {},
  "royaltyNumerator_gte": {},
  "royaltyNumerator_in": [{}],
  "royaltyNumerator_lt": {},
  "royaltyNumerator_lte": {},
  "royaltyNumerator_not": {},
  "royaltyNumerator_not_in": [{}],
  "royaltyRecipient": Bytes,
  "royaltyRecipient_contains": Bytes,
  "royaltyRecipient_gt": Bytes,
  "royaltyRecipient_gte": Bytes,
  "royaltyRecipient_in": [Bytes],
  "royaltyRecipient_lt": Bytes,
  "royaltyRecipient_lte": Bytes,
  "royaltyRecipient_not": Bytes,
  "royaltyRecipient_not_contains": Bytes,
  "royaltyRecipient_not_in": [Bytes],
  "tokenId": {},
  "tokenId_gt": {},
  "tokenId_gte": {},
  "tokenId_in": [{}],
  "tokenId_lt": {},
  "tokenId_lte": {},
  "tokenId_not": {},
  "tokenId_not_in": [{}],
  "tokenURI": "xyz789",
  "tokenURI_contains": "xyz789",
  "tokenURI_contains_nocase": "xyz789",
  "tokenURI_ends_with": "xyz789",
  "tokenURI_ends_with_nocase": "xyz789",
  "tokenURI_gt": "abc123",
  "tokenURI_gte": "xyz789",
  "tokenURI_in": ["xyz789"],
  "tokenURI_lt": "abc123",
  "tokenURI_lte": "abc123",
  "tokenURI_not": "abc123",
  "tokenURI_not_contains": "abc123",
  "tokenURI_not_contains_nocase": "abc123",
  "tokenURI_not_ends_with": "abc123",
  "tokenURI_not_ends_with_nocase": "abc123",
  "tokenURI_not_in": ["xyz789"],
  "tokenURI_not_starts_with": "abc123",
  "tokenURI_not_starts_with_nocase": "xyz789",
  "tokenURI_starts_with": "abc123",
  "tokenURI_starts_with_nocase": "abc123",
  "updatedAt": "abc123",
  "updatedAt_contains": "abc123",
  "updatedAt_contains_nocase": "abc123",
  "updatedAt_ends_with": "xyz789",
  "updatedAt_ends_with_nocase": "xyz789",
  "updatedAt_gt": "xyz789",
  "updatedAt_gte": "abc123",
  "updatedAt_in": ["abc123"],
  "updatedAt_lt": "abc123",
  "updatedAt_lte": "abc123",
  "updatedAt_not": "abc123",
  "updatedAt_not_contains": "abc123",
  "updatedAt_not_contains_nocase": "xyz789",
  "updatedAt_not_ends_with": "xyz789",
  "updatedAt_not_ends_with_nocase": "xyz789",
  "updatedAt_not_in": ["abc123"],
  "updatedAt_not_starts_with": "abc123",
  "updatedAt_not_starts_with_nocase": "xyz789",
  "updatedAt_starts_with": "xyz789",
  "updatedAt_starts_with_nocase": "abc123"
}

Types

Token_orderBy

Values

Example

"amount"

Types

UpdatePerson

Fields

Example

{
  "username": "xyz789",
  "walletAddress": "xyz789"
}

Types

_SubgraphErrorPolicy_

Values

Example

"allow"

Types

collectionContractsQueryArgs

Fields

Example

{
  "block": Block_height,
  "first": 123,
  "orderBy": "address",
  "orderDirection": "asc",
  "skip": 123,
  "subgraphError": "allow",
  "where": CollectionContract_filter
}

Types

tokensInput

Fields

Example

{
  "network": "ropsten",
  "ownedBy": OwnedBy,
  "mintedBy": MintedBy,
  "byCollectionEntityUri": "abc123",
  "queryParams": tokensQueryArgs
}

Types

tokensQueryArgs

Fields

Example

{
  "block": Block_height,
  "first": 987,
  "orderBy": "amount",
  "orderDirection": "asc",
  "skip": 987,
  "subgraphError": "allow",
  "where": Token_filter
}

Documentation by Anvil SpectaQL

Last updated