Links

openSeaTokenLevelStandard

Creates the token metadata.

Paramaters

name: string - name of the token
description: string - description of the token
image: string - URL link to the image
attributes: array - the attributes of the token
external_link: string - optional external link of the token
animation_url: string - optional link to an animation such as music, video
background_color: string - optional background color of the token
youtube_url: string - optional youtube url of the token

Response

transactionResponse: confirmation the transaction was completed

Example

const 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);