NABI PROTOCOL
Search
K

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
1
type NftGalleryItem {
2
id: ID!
3
profileId: String!
4
createdAt: DateTimeISO!
5
isDisplayed: Boolean!
6
contractAddress: String!
7
description: String
8
modifiedAt: DateTimeISO
9
metadataUrl: String
10
metadataS3Url: String
11
}
Fields
  • contractAddress: Contract address of NFT
  • description: Any notes or thoughts you want to append to this NFT Gallery Item
GraphQL Schema
1
input AddNftGalleryItem {
2
profileId: String!
3
contractAddress: String!
4
description: String
5
metadataUrl: String
6
metadataS3Url: String
7
}
8
9
type Mutation {
10
addNftGalleryItem(request: AddNftGalleryItem!): NftGalleryItem!
11
}
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
1
mutation AddNftGalleryItem {
2
addNftGalleryItem(
3
request: {
4
profileId: "0x0",
5
contractAddress: "EQAsqo_thniyA4Xo5CJ9w7BQUBvkJRXm6_7wqw2RLhnTSBZr",
6
description: "My first ton nft 🤗",
7
metadataS3Url: "https://nabi-protocol-profile-nft-meta.s3.amazonaws.com/tonpunk3285.json",
8
metadataUrl: "https://nabi-protocol-profile-nft-meta.s3.amazonaws.com/tonpunk3285.json"
9
}
10
) {
11
id
12
profileId
13
createdAt
14
isDisplayed
15
contractAddress
16
description
17
# ... any other NftGalleryItem fields
18
}
19
}

Response

JSON Response
1
{
2
"data": {
3
"addNftGalleryItem": {
4
"id": "f5b776fb-6476-4930-8505-80a3f4ac60ea",
5
"profileId": "0x0",
6
"createdAt": "2023-08-17T09:00:02.484Z",
7
"isDisplayed": true,
8
"contractAddress": "EQAsqo_thniyA4Xo5CJ9w7BQUBvkJRXm6_7wqw2RLhnTSBZr",
9
"description": "My first ton nft 🤗"
10
}
11
}
12
}