Collection

# Category is set of token collections.
type Category {
    # Identifier of the category
    id: Int!

    # Name of the category
    name: String!

    # Icon of the category - SVG file content
    icon: String
}
# Collection represents tokens contract.
type Collection {
    # Address of the token contract
    contract: Address!

    # Name of the token contract
    name: String!

    # Description of the token contract
    description: String!

    # Categories IDs of the collection
    categories: [Int!]!

    # IPFS hash of the collection image
    image: String!

    # Owner of the collection
    owner: Address

    # Owner of the collection
    ownerUser: User

    # Recipient of royalty transfer fee
    feeRecipient: Address

    # Recipient of royalty transfer fee
    feeRecipientUser: User

    # Royalty - fee in percents (with decimals)
    royalty: String!

    # Social: E-mail
    email: String!

    # Social: Site URL
    site: String!

    # Social: Discord URL
    discord: String!

    # Social: Telegram URL
    telegram: String!

    # Social: Medium URL
    medium: String!

    # Social: Twitter URL
    twitter: String!

    # Social: Instagram URL
    instagram: String!

    # canMint checks if the given user address can create new tokens on the collection
    canMint(user:Address!, fee: BigInt): Boolean!
}

type CollectionEdge {
    cursor: Cursor!
    node: Collection!
}

type CollectionConnection {
    # Edges contains provided edges of the sequential list.
    edges: [CollectionEdge!]!

    # TotalCount is the total amount of items in the list.
    totalCount: BigInt!

    # PageInfo is an information about the current page of the list.
    pageInfo: PageInfo!
}

Last updated