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

Name
Description

collectionContract - String!

tokenId - String!

userId - String!

network - NetworkName!

Example

Query

Variables

Response

Queries

collection

Description

🔓 Public

Returns single collection

Response

Returns a Collection

Arguments

Name
Description

network - NetworkName!

id - String!

Example

Query

Variables

Response

Queries

collectionMetadata

Description

🔒 JWT Token

Retrieve collection metadata by id

Response

Returns a CollectionMetadataDto!

Arguments

Name
Description

id - Float!

Example

Query

Variables

Response

Queries

collections

Description

🔓 Public

Returns collections

Response

Returns [Collection!]!

Arguments

Name
Description

Example

Query

Variables

Response

Queries

currentPerson

Description

🔒 JWT Token

Returns person from the context

Response

Returns a PersonDto!

Example

Query

Response

Queries

fees

Description

🔓 Public

Returns market fees

Response

Returns a Fees!

Arguments

Name
Description

network - NetworkName!

Example

Query

Variables

Response

Queries

listCollectionMetadata

Description

🔒 JWT Token

Returns list of collection metadata

Response

Returns a CollectionMetadataListResDTO!

Arguments

Name
Description

pagination - PaginationParams!

Example

Query

Variables

Response

Queries

listMetadata

Description

🔒 JWT Token

Returns list of NFT metadata

Response

Returns a NftMetadataListResDTO!

Arguments

Name
Description

pagination - PaginationParams!

Example

Query

Variables

Response

Queries

metadata

Description

🔒 JWT Token

Retrieve metadata by id

Response

Returns a NftMetadataDTO!

Arguments

Name
Description

id - Float!

Example

Query

Variables

Response

Queries

nftUses

Description

🔒 JWT Token

Licensed nft buyer rights

Response

Returns a NftUsesDTO!

Example

Query

Response

Queries

person

Description

🔓 Public

Returns single person

Response

Returns a PersonDto

Arguments

Name
Description

identifier - PersonIdentifier!

Example

Query

Variables

Response

Queries

persons

Description

🔓 Public

Returns persons

Response

Returns a Persons!

Arguments

Name
Description

pagination - PaginationParams!

Example

Query

Variables

Response

Queries

token

Description

🔓 Public

Returns single token

Response

Returns a Token

Arguments

Name
Description

network - NetworkName!

id - String!

Example

Query

Variables

Response

Queries

tokens

Description

🔓 Public

Returns tokens

Response

Returns [Token!]!

Arguments

Name
Description

input - tokensInput!

Example

Query

Variables

Response

Mutations

createAvatarUrl

Description

🔒 JWT Token

Creates Avatar URL

Response

Returns an AvatarLinkResDTO!

Arguments

Name
Description

avatarLink - AvatarLinkReqDTO!

Example

Query

Variables

Response

Mutations

createCollectionAssetsUploadUrl

Description

🔒 JWT Token

Creates Metadata URL

Response

Returns a CollectionMetadataLinkResDTO!

Arguments

Name
Description

collectionMetadataLink - CollectionMetadataLinkReqDTO!

id - Float!

id of the collection-metadata draft

Example

Query

Variables

Response

Mutations

createUrl

Description

🔒 JWT Token

Creates Metadata URL

Response

Returns a NftMetadataLinkResDTO!

Arguments

Name
Description

nftMetadataLink - NftMetadataLinkReqDTO!

id - Float!

id of the nft-metadata draft

Example

Query

Variables

Response

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

Name
Description

collectionMetadataDraft - CollectionMetadataDraftReqDTO!

Example

Query

Variables

Response

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

Name
Description

nftMetadataDraft - NftMetadataDraftReqDTO!

Example

Query

Variables

Response

Mutations

updateCollectionDraft

Description

🔒 JWT Token

Updates collection metadata draft

Response

Returns a CollectionMetadataDto!

Arguments

Name
Description

collectionMetadataDraft - CollectionMetadataDraftReqDTO!

id - Float!

Example

Query

Variables

Response

Mutations

updateDraft

Description

🔒 JWT Token

Updates nft metadata draft

Response

Returns a NftMetadataDraftResDTO!

Arguments

Name
Description

updateNFTMetadataDraft - NftMetadataDraftReqDTO!

id - Float!

Example

Query

Variables

Response

Mutations

updatePerson

Description

🔒 JWT Token

Updates person

Response

Returns a PersonDto!

Arguments

Name
Description

updatePerson - UpdatePerson!

Example

Query

Variables

Response

Types

AddressResolverType

Values

Enum Value
Description

PERSON_ID

OWNER_URI

Example

Types

AvatarLinkReqDTO

Fields

Input Field
Description

fileName - String!

the file name must contain its extension -> [name].jpg

contentType - String!

mime type of the avatar file -> image/jpeg

Example

Types

AvatarLinkResDTO

Fields

Field Name
Description

avatarUploadUrl - String!

Example

Types

BigInt

Example

Types

BlockChangedFilter

Fields

Input Field
Description

number_gte - Int!

Example

Types

Block_height

Fields

Input Field
Description

hash - Bytes

number - Int

number_gte - Int

Example

Types

Boolean

Description

The Boolean scalar type represents true or false.

Example

Types

Bytes

Example

Types

Collection

Fields

Field Name
Description

id - String!

owner - String!

tokens - [Token!]

address - String!

contractURI - String!

networkName - NetworkName!

createdAt - String!

updatedAt - String!

Example

Types

CollectionContract_filter

Fields

Input Field
Description

_change_block - BlockChangedFilter

Filter for the block changed event.

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!]

contractURI - String

contractURI_contains - String

contractURI_contains_nocase - String

contractURI_ends_with - String

contractURI_ends_with_nocase - String

contractURI_gt - String

contractURI_gte - String

contractURI_in - [String!]

contractURI_lt - String

contractURI_lte - String

contractURI_not - String

contractURI_not_contains - String

contractURI_not_contains_nocase - String

contractURI_not_ends_with - String

contractURI_not_ends_with_nocase - String

contractURI_not_in - [String!]

contractURI_not_starts_with - String

contractURI_not_starts_with_nocase - String

contractURI_starts_with - String

contractURI_starts_with_nocase - String

createdAt - String

createdAt_contains - String

createdAt_contains_nocase - String

createdAt_ends_with - String

createdAt_ends_with_nocase - String

createdAt_gt - String

createdAt_gte - String

createdAt_in - [String!]

createdAt_lt - String

createdAt_lte - String

createdAt_not - String

createdAt_not_contains - String

createdAt_not_contains_nocase - String

createdAt_not_ends_with - String

createdAt_not_ends_with_nocase - String

createdAt_not_in - [String!]

createdAt_not_starts_with - String

createdAt_not_starts_with_nocase - String

createdAt_starts_with - String

createdAt_starts_with_nocase - String

id - ID

id_gt - ID

id_gte - ID

id_in - [ID!]

id_lt - ID

id_lte - ID

id_not - ID

id_not_in - [ID!]

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 - String

updatedAt_contains - String

updatedAt_contains_nocase - String

updatedAt_ends_with - String

updatedAt_ends_with_nocase - String

updatedAt_gt - String

updatedAt_gte - String

updatedAt_in - [String!]

updatedAt_lt - String

updatedAt_lte - String

updatedAt_not - String

updatedAt_not_contains - String

updatedAt_not_contains_nocase - String

updatedAt_not_ends_with - String

updatedAt_not_ends_with_nocase - String

updatedAt_not_in - [String!]

updatedAt_not_starts_with - String

updatedAt_not_starts_with_nocase - String

updatedAt_starts_with - String

updatedAt_starts_with_nocase - String

Example

Types

CollectionContract_orderBy

Values

Enum Value
Description

address

contractURI

createdAt

id

owner

tokens

updatedAt

Example

Types

CollectionEntity

Description

represents an element of the hierarchy within the enterprise.

Fields

Field Name
Description

id - ID!

Auto-incrementing identifier.

Specifies the type of entry. Represents the hierarchy level within the enterprise.

entityUri - String

Tenant ID to which artists, enterprise and labels belong.

name - String!

Entity name.

description - String

Entity description.

avatarUrl - String

avatar url, displayed on the storefront.

bannerUrl - String

banner url, displayed on the storefront.

createdAt - String!

Time at which the object was created.

updatedAt - String!

Time at which the object was last updated.

Example

Types

CollectionEntityType

Values

Enum Value
Description

ENTERPRISE

ARTIST

LABEL

Example

Types

CollectionMetadataDraftReqDTO

Fields

Input Field
Description

name - String!

symbol - String

description - String

externalLink - String

defaultRoyalties - String

defaultRoyaltyRecipient - String

networkName - NetworkName!

Example

Types

CollectionMetadataDto

Fields

Field Name
Description

id - Int

id of the collection

userSub - String

sub of the user

name - String

name of the collection

symbol - String

symbol of the collection

description - String

description of the collection

coverImageS3Key - String

s3 key of the cover image

coverImageS3Url - String

s3 link of the cover image

coverImageIpfsUrl - String

ipfs link of the cover image

coverImageIpfsHash - String

ipfs hash of the cover image

bannerImageS3Key - String

s3 key of the banner image

bannerImageS3Url - String

s3 link of the banner image

bannerImageIpfsHash - String

ipfs hash of the banner image

bannerImageIpfsUrl - String

ipfs link of the banner image

externalLink - String

external link of the collection

defaultRoyalties - String

default royalty basis point

defaultRoyaltyRecipient - String

default royalty recipient

metadataIpfsHash - String

ipfs link of contract level metadata

metadataIpfsUrl - String

ipfs link of contract level metadata

networkName - NetworkName

name of the network

status - FileStatus

status of the uploading files

Example

Types

CollectionMetadataLinkReqDTO

Fields

Input Field
Description

coverFileName - String!

the cover of the collection | the cover name must contain its extension -> [name].jpg

coverFileMimeType - String!

mime type of the collection cover file -> image/jpeg

bannerFileName - String

the banner of the collection | the banner name must contain its extension -> [name].jpg

bannerFileMimeType - String

mime type of the collection banner file -> image/jpeg

Example

Types

CollectionMetadataLinkResDTO

Fields

Field Name
Description

coverUploadUrl - String

bannerUploadUrl - String

Example

Types

CollectionMetadataListResDTO

Fields

Field Name
Description

Example

Types

CollectionsInput

Fields

Input Field
Description

network - NetworkName!

Name of the blockchain network on which the transaction occurs

ownedBy - OwnedBy

Parameters filtering collections by owner. One collection can have only one owner.

Parameters filtering collections from subgraph.

Example

Types

DisplayType

Values

Enum Value
Description

DATE

NUMBER

BOOST_NUMBER

BOOST_PERCENTAGE

Example

Types

Fees

Fields

Field Name
Description

mintingFee - String!

sellingFee - String!

Example

Types

FileStatus

Values

Enum Value
Description

PENDING_UPLOAD

UPLOADED

DRAFT

Example

Types

FileType

Values

Enum Value
Description

IMAGE

MEDIA

Example

Types

Float

Description

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

Example

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

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

Types

Listing

Fields

Field Name
Description

id - String!

onSale - Boolean!

seller - Owner!

salePrice - String!

amountListed - String!

amountRemaining - String!

createdAt - String!

updatedAt - String!

Example

Types

Listing_filter

Fields

Input Field
Description

_change_block - BlockChangedFilter

Filter for the block changed event.

amountListed - BigInt

amountListed_gt - BigInt

amountListed_gte - BigInt

amountListed_in - [BigInt!]

amountListed_lt - BigInt

amountListed_lte - BigInt

amountListed_not - BigInt

amountListed_not_in - [BigInt!]

amountRemaining - BigInt

amountRemaining_gt - BigInt

amountRemaining_gte - BigInt

amountRemaining_in - [BigInt!]

amountRemaining_lt - BigInt

amountRemaining_lte - BigInt

amountRemaining_not - BigInt

amountRemaining_not_in - [BigInt!]

createdAt - String

createdAt_contains - String

createdAt_contains_nocase - String

createdAt_ends_with - String

createdAt_ends_with_nocase - String

createdAt_gt - String

createdAt_gte - String

createdAt_in - [String!]

createdAt_lt - String

createdAt_lte - String

createdAt_not - String

createdAt_not_contains - String

createdAt_not_contains_nocase - String

createdAt_not_ends_with - String

createdAt_not_ends_with_nocase - String

createdAt_not_in - [String!]

createdAt_not_starts_with - String

createdAt_not_starts_with_nocase - String

createdAt_starts_with - String

createdAt_starts_with_nocase - String

id - ID

id_gt - ID

id_gte - ID

id_in - [ID!]

id_lt - ID

id_lte - ID

id_not - ID

id_not_in - [ID!]

onSale - Boolean

onSale_in - [Boolean!]

onSale_not - Boolean

onSale_not_in - [Boolean!]

salePrice - BigInt

salePrice_gt - BigInt

salePrice_gte - BigInt

salePrice_in - [BigInt!]

salePrice_lt - BigInt

salePrice_lte - BigInt

salePrice_not - BigInt

salePrice_not_in - [BigInt!]

seller - String

seller_ - Owner_filter

seller_contains - String

seller_contains_nocase - String

seller_ends_with - String

seller_ends_with_nocase - String

seller_gt - String

seller_gte - String

seller_in - [String!]

seller_lt - String

seller_lte - String

seller_not - String

seller_not_contains - String

seller_not_contains_nocase - String

seller_not_ends_with - String

seller_not_ends_with_nocase - String

seller_not_in - [String!]

seller_not_starts_with - String

seller_not_starts_with_nocase - String

seller_starts_with - String

seller_starts_with_nocase - String

token - String

token_ - Token_filter

token_contains - String

token_contains_nocase - String

token_ends_with - String

token_ends_with_nocase - String

token_gt - String

token_gte - String

token_in - [String!]

token_lt - String

token_lte - String

token_not - String

token_not_contains - String

token_not_contains_nocase - String

token_not_ends_with - String

token_not_ends_with_nocase - String

token_not_in - [String!]

token_not_starts_with - String

token_not_starts_with_nocase - String

token_starts_with - String

token_starts_with_nocase - String

updatedAt - String

updatedAt_contains - String

updatedAt_contains_nocase - String

updatedAt_ends_with - String

updatedAt_ends_with_nocase - String

updatedAt_gt - String

updatedAt_gte - String

updatedAt_in - [String!]

updatedAt_lt - String

updatedAt_lte - String

updatedAt_not - String

updatedAt_not_contains - String

updatedAt_not_contains_nocase - String

updatedAt_not_ends_with - String

updatedAt_not_ends_with_nocase - String

updatedAt_not_in - [String!]

updatedAt_not_starts_with - String

updatedAt_not_starts_with_nocase - String

updatedAt_starts_with - String

updatedAt_starts_with_nocase - String

Example

Types

MintedBy

Fields

Input Field
Description

The value type by which the tokens/collections are filtered. PERSON_ID - Person model identifier, OWNER_URI - Model identifier from the revelator database. ID scheme: [tenantName]|[entityType]|[number] (Revelator|enterprise|4)

value - String

The value by which the tokens/collections are filtered.

Example

Types

NetworkName

Values

Enum Value
Description

ropsten

kovan

ownet

mainnet

binance

bnbtest

sepolia

local

test

polygon

goerli

mumbai

ethereum

shibuya

amoy

base

baseSepolia

Example

Types

NftLicenceDto

Fields

Field Name
Description

revelatorTermsAndConditions - Boolean

nftTitle - String

label - String

royaltyRate - String

personalUses - [NftUseDTO!]

commercialUses - [NftUseDTO!]

Example

Types

NftMetadataAttributeInput

Fields

Input Field
Description

value - String!

traitType - String

displayType - DisplayType

Example

Types

NftMetadataAttributeObject

Fields

Field Name
Description

value - String

traitType - String

displayType - DisplayType

Example

Types

NftMetadataDTO

Fields

Field Name
Description

id - Int

userSub - String

title - String

description - String

artistId - String

fileType - FileType

networkName - NetworkName

s3Key - String

s3CoverKey - String

ipfsNftUrl - String

ipfsCoverUrl - String

ipfsMetadataUrl - String

ipfsNftHash - String

ipfsCoverHash - String

licenceS3Key - String

ipfsLicenceHash - String

nftLicence - NftLicenceDto

ipfsMetadataHash - String

status - FileStatus

backgroundColor - String

externalUrl - String

youtubeUrl - String

ipfsNftPublicUrl - String

ipfsCoverPublicUrl - String

ipfsMetadataPublicUrl - String

ipfsLicencePublicUrl - String

Example

Types

NftMetadataDraftReqDTO

Fields

Input Field
Description

backgroundColor - String

externalUrl - String

youtubeUrl - String

title - String!

description - String

artistId - String

fileType - FileType!

networkName - NetworkName!

revelatorTermsAndConditions - Boolean

personalUses - [Int!]

commercialUses - [Int!]

Example

Types

NftMetadataDraftResDTO

Fields

Field Name
Description

id - Float

fileName - String

title - String

description - String

artistId - String

fileType - FileType

networkName - NetworkName

backgroundColor - String

externalUrl - String

youtubeUrl - String

Example

Types

NftMetadataLinkReqDTO

Fields

Input Field
Description

fileName - String!

the file name must contain its extension -> [name].jpg

fileMime - String!

mime type of the nft file -> image/jpeg

coverFileName - String

the file name must contain its extension -> [name].jpg

coverMime - String

mime type of the cover image file -> image/jpeg

Example

Types

NftMetadataLinkResDTO

Fields

Field Name
Description

uploadUrl - String!

coverUploadUrl - String

Example

Types

NftMetadataListResDTO

Fields

Field Name
Description

Example

Types

NftUseDTO

Fields

Field Name
Description

id - Int

name - String

description - String

position - Float

nftUseType - NftUseType

Example

Types

NftUseType

Values

Enum Value
Description

personal

commercial

Example

Types

NftUsesDTO

Fields

Field Name
Description

Example

Types

OrderDirection

Description

Defines the order direction, either ascending or descending

Values

Enum Value
Description

asc

desc

Example

Types

OwnedBy

Fields

Input Field
Description

The value type by which the tokens/collections are filtered. PERSON_ID - Person model identifier, OWNER_URI - Model identifier from the revelator database. ID scheme: [tenantName]|[entityType]|[number] (Revelator|enterprise|4)

value - String

The value by which the tokens/collections are filtered.

Example

Types

Owner

Fields

Field Name
Description

address - String!

Example

Types

OwnerWithMetadata

Fields

Field Name
Description

amountOwned - String!

amountDeposited - String!

id - String

walletAddress - String

smartWalletAddress - String

username - String

avatarS3Key - String

avatarUrl - String

Example

Types

Owner_filter

Fields

Input Field
Description

_change_block - BlockChangedFilter

Filter for the block changed event.

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!]

id - ID

id_gt - ID

id_gte - ID

id_in - [ID!]

id_lt - ID

id_lte - ID

id_not - ID

id_not_in - [ID!]

listings_ - Listing_filter

purchases_ - Purchase_filter

Example

Types

PaginationParams

Fields

Input Field
Description

startId - Float

limit - Float

Example

Types

PersonDto

Fields

Field Name
Description

id - String

walletAddress - String

smartWalletAddress - String

username - String

avatarS3Key - String

avatarUrl - String

Example

Types

PersonIdentifier

Fields

Input Field
Description

id - String

walletAddress - String

Example

Types

Persons

Fields

Field Name
Description

items - [PersonDto!]

count - Float

Example

Types

Purchase

Fields

Field Name
Description

id - String!

amount - String!

salePrice - String!

value - String!

buyer - Owner!

createdAt - String!

Example

Types

Purchase_filter

Fields

Input Field
Description

_change_block - BlockChangedFilter

Filter for the block changed event.

amount - BigInt

amount_gt - BigInt

amount_gte - BigInt

amount_in - [BigInt!]

amount_lt - BigInt

amount_lte - BigInt

amount_not - BigInt

amount_not_in - [BigInt!]

buyer - String

buyer_ - Owner_filter

buyer_contains - String

buyer_contains_nocase - String

buyer_ends_with - String

buyer_ends_with_nocase - String

buyer_gt - String

buyer_gte - String

buyer_in - [String!]

buyer_lt - String

buyer_lte - String

buyer_not - String

buyer_not_contains - String

buyer_not_contains_nocase - String

buyer_not_ends_with - String

buyer_not_ends_with_nocase - String

buyer_not_in - [String!]

buyer_not_starts_with - String

buyer_not_starts_with_nocase - String

buyer_starts_with - String

buyer_starts_with_nocase - String

createdAt - String

createdAt_contains - String

createdAt_contains_nocase - String

createdAt_ends_with - String

createdAt_ends_with_nocase - String

createdAt_gt - String

createdAt_gte - String

createdAt_in - [String!]

createdAt_lt - String

createdAt_lte - String

createdAt_not - String

createdAt_not_contains - String

createdAt_not_contains_nocase - String

createdAt_not_ends_with - String

createdAt_not_ends_with_nocase - String

createdAt_not_in - [String!]

createdAt_not_starts_with - String

createdAt_not_starts_with_nocase - String

createdAt_starts_with - String

createdAt_starts_with_nocase - String

id - ID

id_gt - ID

id_gte - ID

id_in - [ID!]

id_lt - ID

id_lte - ID

id_not - ID

id_not_in - [ID!]

salePrice - BigInt

salePrice_gt - BigInt

salePrice_gte - BigInt

salePrice_in - [BigInt!]

salePrice_lt - BigInt

salePrice_lte - BigInt

salePrice_not - BigInt

salePrice_not_in - [BigInt!]

token - String

token_ - Token_filter

token_contains - String

token_contains_nocase - String

token_ends_with - String

token_ends_with_nocase - String

token_gt - String

token_gte - String

token_in - [String!]

token_lt - String

token_lte - String

token_not - String

token_not_contains - String

token_not_contains_nocase - String

token_not_ends_with - String

token_not_ends_with_nocase - String

token_not_in - [String!]

token_not_starts_with - String

token_not_starts_with_nocase - String

token_starts_with - String

token_starts_with_nocase - String

value - BigInt

value_gt - BigInt

value_gte - BigInt

value_in - [BigInt!]

value_lt - BigInt

value_lte - BigInt

value_not - BigInt

value_not_in - [BigInt!]

Example

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

Types

Token

Fields

Field Name
Description

id - String!

tokenId - String!

collectionContract - Collection

minter - String!

enterprise - CollectionEntity

amount - String!

royaltyRecipient - String

royaltyNumerator - String

ownersWithMetadata - [OwnerWithMetadata!]

listing - Listing!

purchases - [Purchase!]!

tokenURI - String!

metadata - NftMetadataDTO

nftUrl - String

coverUrl - String

networkName - NetworkName!

createdAt - String!

updatedAt - String!

Example

Types

TokenOwner

Fields

Field Name
Description

id - String!

owner - Owner!

amountOwned - String!

amountDeposited - String!

Example

Types

TokenOwner_filter

Fields

Input Field
Description

_change_block - BlockChangedFilter

Filter for the block changed event.

amountDeposited - BigInt

amountDeposited_gt - BigInt

amountDeposited_gte - BigInt

amountDeposited_in - [BigInt!]

amountDeposited_lt - BigInt

amountDeposited_lte - BigInt

amountDeposited_not - BigInt

amountDeposited_not_in - [BigInt!]

amountOwned - BigInt

amountOwned_gt - BigInt

amountOwned_gte - BigInt

amountOwned_in - [BigInt!]

amountOwned_lt - BigInt

amountOwned_lte - BigInt

amountOwned_not - BigInt

amountOwned_not_in - [BigInt!]

id - ID

id_gt - ID

id_gte - ID

id_in - [ID!]

id_lt - ID

id_lte - ID

id_not - ID

id_not_in - [ID!]

owner - String

owner_ - Owner_filter

owner_contains - String

owner_contains_nocase - String

owner_ends_with - String

owner_ends_with_nocase - String

owner_gt - String

owner_gte - String

owner_in - [String!]

owner_lt - String

owner_lte - String

owner_not - String

owner_not_contains - String

owner_not_contains_nocase - String

owner_not_ends_with - String

owner_not_ends_with_nocase - String

owner_not_in - [String!]

owner_not_starts_with - String

owner_not_starts_with_nocase - String

owner_starts_with - String

owner_starts_with_nocase - String

token - String

token_ - Token_filter

token_contains - String

token_contains_nocase - String

token_ends_with - String

token_ends_with_nocase - String

token_gt - String

token_gte - String

token_in - [String!]

token_lt - String

token_lte - String

token_not - String

token_not_contains - String

token_not_contains_nocase - String

token_not_ends_with - String

token_not_ends_with_nocase - String

token_not_in - [String!]

token_not_starts_with - String

token_not_starts_with_nocase - String

token_starts_with - String

token_starts_with_nocase - String

Example

Types

Token_filter

Fields

Input Field
Description

_change_block - BlockChangedFilter

Filter for the block changed event.

amount - BigInt

amount_gt - BigInt

amount_gte - BigInt

amount_in - [BigInt!]

amount_lt - BigInt

amount_lte - BigInt

amount_not - BigInt

amount_not_in - [BigInt!]

collectionContract - String

collectionContract_ - CollectionContract_filter

collectionContract_contains - String

collectionContract_contains_nocase - String

collectionContract_ends_with - String

collectionContract_ends_with_nocase - String

collectionContract_gt - String

collectionContract_gte - String

collectionContract_in - [String!]

collectionContract_lt - String

collectionContract_lte - String

collectionContract_not - String

collectionContract_not_contains - String

collectionContract_not_contains_nocase - String

collectionContract_not_ends_with - String

collectionContract_not_ends_with_nocase - String

collectionContract_not_in - [String!]

collectionContract_not_starts_with - String

collectionContract_not_starts_with_nocase - String

collectionContract_starts_with - String

collectionContract_starts_with_nocase - String

createdAt - String

createdAt_contains - String

createdAt_contains_nocase - String

createdAt_ends_with - String

createdAt_ends_with_nocase - String

createdAt_gt - String

createdAt_gte - String

createdAt_in - [String!]

createdAt_lt - String

createdAt_lte - String

createdAt_not - String

createdAt_not_contains - String

createdAt_not_contains_nocase - String

createdAt_not_ends_with - String

createdAt_not_ends_with_nocase - String

createdAt_not_in - [String!]

createdAt_not_starts_with - String

createdAt_not_starts_with_nocase - String

createdAt_starts_with - String

createdAt_starts_with_nocase - String

id - ID

id_gt - ID

id_gte - ID

id_in - [ID!]

id_lt - ID

id_lte - ID

id_not - ID

id_not_in - [ID!]

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!]

purchases_ - Purchase_filter

royaltyNumerator - BigInt

royaltyNumerator_gt - BigInt

royaltyNumerator_gte - BigInt

royaltyNumerator_in - [BigInt!]

royaltyNumerator_lt - BigInt

royaltyNumerator_lte - BigInt

royaltyNumerator_not - BigInt

royaltyNumerator_not_in - [BigInt!]

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 - BigInt

tokenId_gt - BigInt

tokenId_gte - BigInt

tokenId_in - [BigInt!]

tokenId_lt - BigInt

tokenId_lte - BigInt

tokenId_not - BigInt

tokenId_not_in - [BigInt!]

tokenURI - String

tokenURI_contains - String

tokenURI_contains_nocase - String

tokenURI_ends_with - String

tokenURI_ends_with_nocase - String

tokenURI_gt - String

tokenURI_gte - String

tokenURI_in - [String!]

tokenURI_lt - String

tokenURI_lte - String

tokenURI_not - String

tokenURI_not_contains - String

tokenURI_not_contains_nocase - String

tokenURI_not_ends_with - String

tokenURI_not_ends_with_nocase - String

tokenURI_not_in - [String!]

tokenURI_not_starts_with - String

tokenURI_not_starts_with_nocase - String

tokenURI_starts_with - String

tokenURI_starts_with_nocase - String

updatedAt - String

updatedAt_contains - String

updatedAt_contains_nocase - String

updatedAt_ends_with - String

updatedAt_ends_with_nocase - String

updatedAt_gt - String

updatedAt_gte - String

updatedAt_in - [String!]

updatedAt_lt - String

updatedAt_lte - String

updatedAt_not - String

updatedAt_not_contains - String

updatedAt_not_contains_nocase - String

updatedAt_not_ends_with - String

updatedAt_not_ends_with_nocase - String

updatedAt_not_in - [String!]

updatedAt_not_starts_with - String

updatedAt_not_starts_with_nocase - String

updatedAt_starts_with - String

updatedAt_starts_with_nocase - String

Example

Types

Token_orderBy

Values

Enum Value
Description

amount

collectionContract

collectionContract__address

collectionContract__contractURI

collectionContract__createdAt

collectionContract__id

collectionContract__owner

collectionContract__updatedAt

createdAt

id

listing

listing__amountListed

listing__amountRemaining

listing__createdAt

listing__id

listing__onSale

listing__salePrice

listing__updatedAt

minter

owners

purchases

royaltyNumerator

royaltyRecipient

tokenId

tokenURI

updatedAt

Example

Types

UpdatePerson

Fields

Input Field
Description

username - String

walletAddress - String

Example

Types

_SubgraphErrorPolicy_

Values

Enum Value
Description

allow

Data will be returned even if the subgraph has indexing errors

deny

If the subgraph has indexing errors, data will be omitted. The default.

Example

Types

collectionContractsQueryArgs

Fields

Input Field
Description

block - Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

first - Int

orderDirection - OrderDirection

skip - Int

subgraphError - _SubgraphErrorPolicy_!

Set to allow to receive data even if the subgraph has skipped over errors while syncing. Default = deny

Example

Types

tokensInput

Fields

Input Field
Description

network - NetworkName!

Name of the blockchain network on which the transaction occurs

ownedBy - OwnedBy

Parameters filtering tokens by owners. One token can have many owners. The owner does not have to be the creator. The token may not have the creator in the list of owners.

mintedBy - MintedBy

Parameters filtering tokens by minters. One token can have one minter. Minter is the creator of the token or the entity that created the token on behalf of the artist.

byCollectionEntityUri - String

Parameters filtering tokens by collectionEntity. CollectionEntity is the creator of the token, either a creator group to which the minters belong, or an organization that created the tokens on behalf of the artists.

queryParams - tokensQueryArgs

Parameters filtering tokens from subgraph.

Example

Types

tokensQueryArgs

Fields

Input Field
Description

block - Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

first - Int

orderBy - Token_orderBy

orderDirection - OrderDirection

skip - Int

subgraphError - _SubgraphErrorPolicy_!

Set to allow to receive data even if the subgraph has skipped over errors while syncing. Default = deny

where - Token_filter

Example

Documentation by Anvil SpectaQL

Last updated

Was this helpful?