Update Metadata
To know the methods calling to Startrail API from Startrail-Sdk-Js
updateMetadata()
updateMetadata()Method parameters
Variable
Type
Description
Parameters Example
const res = await sdk.approveSRRByCommitment(
{
startrailLUWContractAddress: '0x113c6880fc4a2664E125973BC0Dfd37d62Ec7c3f',
tokenId: '212786904920',
metadata: {
"$schema": "https://api.startrail.io/api/v1/schema/registry-record-metadata.v2.0.schema.json",
"$schemaIntegrity": "sha256-f63238ce3b8c4f8a99fb453d716d5451f75508c2e403a58af0412014187e7a61",
"startbahnCertICTagUIDs": [
"1234567890abcdef"
],
"title": {
"en": "A title",
"ja": "タイトル",
"zh": "一个标题"
},
"size": {
"width": 200,
"height": 400,
"depth": 12.4,
"unit": "pixel",
"flexibleDescription": {
"en": "flexibleDescription comes here",
"ja": "自由だーーー"
}
},
"medium": {
"en": "Oil on canvas",
"ja": "キャンバスに油彩",
"zh": "布面油画"
},
"edition": {
"uniqueness": "unique work",
"proofType": "ED",
"number": 1,
"totalNumber": 3,
"note": {
"en": "some extra notes in 1 or more languages"
}
},
"contractTerms": {
"royaltyRate": 15.7,
"fileURL": "https://startrail.io/whitepaper/startrail_wp_en_v1.1.pdf"
},
"note": {
"en": "note",
"zh": "注意"
},
"thumbnailURL": "https://storage.googleapis.com/opensea-prod.appspot.com/puffs/3.png",
"yearOfCreation": {
"en": "around 2010-2020",
"ja": "2010年から2020年頃"
},
"isDigital": true,
"digitalDataHash": "sha256-247e4b904322a1dd0b148cd77e8627ec7d391251380880ab4621726ecb945ef5",
"digitalComponents": [
{
"hash": "sha256-247e4b904322a1dd0b148cd77e8627ec7d391251380880ab4621726ecb945ef5",
"category": "artwork"
}
],
"attachmentFiles": [
{
"hash": "sha256-247e4b904322a1dd0b148cd77e8627ec7d391251380880ab4621726ecb945ef5",
"category": "artwork"
}
],
"name": "some nft name",
"description": "some nft description",
"image": "https://storage.googleapis.com/opensea-prod.appspot.com/puffs/3.png",
"external_url": "https://openseacreatures.io/3"
}
},
)
Returns
Response
Variable
Type
Description
TxDetails
Variable
Type
Description
Error
Response Example
Last updated
Was this helpful?