openSeaTokenLevelStandard
Creates the token metadata.
name
: string - name of the tokendescription
: string - description of the tokenimage
: string - URL link to the imageattributes
: array - the attributes of the tokenexternal_link
: string - optional external link of the tokenanimation_url:
string - optional link to an animation such as music, videobackground_color
: string - optional background color of the tokenyoutube_url
: string - optional youtube url of the tokentransactionResponse
: confirmation the transaction was completedconst tokenMetadata = Metadata.openSeaTokenLevelStandard({
description: 'Friendly OpenSea Creature that enjoys long swims in the ocean.',
external_url: 'https://openseacreatures.io/3',
image: await sdk.storeFile('https://storage.googleapis.com/opensea-prod.appspot.com/puffs/3.png'),
name: 'Dave Starbelly',
attributes: [],
});
console.log('tokenMetadata :', tokenMetadata);
Last modified 3mo ago