Listing Trade

Listing is a type of Artion trade where the NFT owner offers a token for direct sale under set conditions, especially the price.

# Listing represents offer for anybody to buy given token from the owner.
type Listing {
    # The seller of the item
    owner: Address!

    # The seller of the item
    ownerUser: User!

    # Address of the token contract
    contract: Address!

    # ID of the token (in given token contract)
    tokenId: BigInt!

    # The listed token (detail)
    token: Token

    # The FantomMarketplace contract
    marketplace: Address!

    # The listed amount (only this exact amount can be bought)
    quantity: BigInt!

    # The token used to pay for the listed item (zeros for native token)
    payToken: Address!

    # The price for one unit of the token (total = unitPrice * quantity)
    unitPrice: BigInt!

    # When sale of the item starts
    startTime: Time!

    # When was the item sold or unlisted
    closed: Time

    # Is the listing creator owner of the token yet?
    isActive: Boolean!
}

type ListingEdge {
    cursor: Cursor!
    node: Listing!
}

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

    # 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