Create NFT metadata API helps users to create their own metadata after calling Upload File to get the corresponding file url. To call Create NFT metadata , users have to provide the metadata information including name, file, external_link and so on.
Name
Meaning
Param Type
Data Type
Authorization
Bearer Token
Header
string
Name
Meaning
Param Type
Data Type
Required
name
The name of the metadata
body
string
image
The file url of the metadata
body
string
external_link
The externanl link of the metadata
body
string
description
The description of the metadata
body
string
animation_url
A URL to a multi-media attachment for the item. The file extensions GLTF, GLB, WEBM, MP4, M4V, OGV, and OGG are supported, along with the audio-only extensions MP3, WAV, and OGA.
body
string
attributes
The attributes of the metadata
array
attribute
The struct of the MetadataAttribute is listed as bellow.
A URL to a multi-media attachment for the item. The file extensions GLTF, GLB, WEBM, MP4, M4V, OGV, and OGG are supported, along with the audio-only extensions MP3, WAV, and OGA.
string
attributes
The attribute of the metadata
[]ExposedMetadataAttribute
The ExposedMetadataAttribute struct is listed as follow:
Query metadata API helps users to query the detailed information of the specified metadata according to metadata_id. This api returns the name, description, external link, file and attributes of the queried metada.
Name
Meaning
Param Type
Data Type
Authorization
Bearer Token
Header
string
Name
Meaning
Param Type
Data Type
Required
metadata_id
The id of the metadata
Path
Integer
Name
Meaning
Data Type
attributes
The attribute of the metadata
[]ExposedMetadataAttribute
description
The description of the metadata
string
external_link
The external link of the metadata
string
animation_url
A URL to a multi-media attachment for the item. The file extensions GLTF, GLB, WEBM, MP4, M4V, OGV, and OGG are supported, along with the audio-only extensions MP3, WAV, and OGA.
string
image
The file url of the metadata
string
metadata_id
The id of the metadata
string
name
The name of the metadata
string
The ExposedMetadataAttribute struct is listed as follow:
Query metadata list API helps users to obain the metadata list including the information of the metadata created in the specified app. This API returns the array of the result from calling Query matadata.
Name
Meaning
Param Type
Data Type
Authorization
Bearer Token
Header
string
Name
Meaning
Param Type
Data Type
Required
Default
page
Page Query
query
integer
1
limit
Page Query
query
integer
10
Name
Meaning
Type
count
The number of the uploaded files
integer
items
The files information
[]QueryMetadataRsponse
The QueryMetadataResponse struct is listed as follow:
Name
Meaning
Data Type
attributes
The attribute of the
[]attributes
description
The description of the metadata
string
external_link
The external link of the metadata
string
animation_url
A URL to a multi-media attachment for the item. The file extensions GLTF, GLB, WEBM, MP4, M4V, OGV, and OGG are supported, along with the audio-only extensions MP3, WAV, and OGA.