kodadot/nft-gallery

View on GitHub
queries/subsquid/rmrk/nftById.graphql

Summary

Maintainability
Test Coverage
#import "../../fragments/nft.graphql"
#import "../../fragments/nftDetails.graphql"

query nftById($id: String!) {
  nftEntity: nftEntityById(id: $id) {
    ...nft
    ...nftDetails
    collection {
      id
      name
      currentOwner
    }
    emotes {
      caller
      value
    }
    events {
      interaction
      timestamp
      meta
    }
    meta {
      id
      name
      description
      image
      animation_url: animationUrl
      attributes {
        key: trait
        value
      }
    }
  }
}