Gallery

Display the NFTs you own on your Profile

🔑 Requires authentication

This operation requires Bearer Token issued from our Authentication flow appended to the request headers. Please refer to Authentication page.

Interface

GraphQL Schema
type NftGalleryItem {
  id: ID!
  profileId: String!
  createdAt: DateTimeISO!
  isDisplayed: Boolean!
  contractAddress: String!
  description: String
  modifiedAt: DateTimeISO
  metadataUrl: String
  metadataS3Url: String
}

Fields

  • contractAddress: Contract address of NFT

  • description: Any notes or thoughts you want to append to this NFT Gallery Item

GraphQL Schema
input AddNftGalleryItem {
    profileId: String!
    contractAddress: String!
    description: String
    metadataUrl: String
    metadataS3Url: String
}

type Mutation {
    addNftGalleryItem(request: AddNftGalleryItem!): NftGalleryItem!
}

Input field

AddNftGalleryItem object

  • profileId

  • contractAddress: Contract address of your NFT

  • description: Notes you want to append to this Gallery Item

  • metadataUrl and metadataS3Url: NFT's metadata

Operation

GraphQL Operation
mutation AddNftGalleryItem {
  addNftGalleryItem(
    request: {
      profileId: "0x0",
      contractAddress: "EQAsqo_thniyA4Xo5CJ9w7BQUBvkJRXm6_7wqw2RLhnTSBZr",
      description: "My first ton nft 🤗",
      metadataS3Url: "https://nabi-protocol-profile-nft-meta.s3.amazonaws.com/tonpunk3285.json",
      metadataUrl: "https://nabi-protocol-profile-nft-meta.s3.amazonaws.com/tonpunk3285.json"
    }
  ) {
    id
    profileId
    createdAt
    isDisplayed
    contractAddress
    description
    # ... any other NftGalleryItem fields
  }
}

Response

JSON Response
{
    "data": {
        "addNftGalleryItem": {
            "id": "f5b776fb-6476-4930-8505-80a3f4ac60ea",
            "profileId": "0x0",
            "createdAt": "2023-08-17T09:00:02.484Z",
            "isDisplayed": true,
            "contractAddress": "EQAsqo_thniyA4Xo5CJ9w7BQUBvkJRXm6_7wqw2RLhnTSBZr",
            "description": "My first ton nft 🤗"
        }
    }
}

Last updated