Optional
jwtInstantiate a new instance of Asset class.
const assetInstance = await Asset.create(id, { credentials: { interactiveNonce, interactivePublicKey, visitorId } });
Optional
options: AssetOptionalInterfaceOptional
error?: unknownOptional
message?: stringOptional
params?: objectOptional
sdkUpload a new Asset and return a new instance of Asset class.
const assetPayload = {
assetName: "exampleAssetName"
bottomLayerURL: "https://example.bottomLayerURL"
creatorTags: { "decorations": true },
tagJson: "[{"label":"decorations","value":"decorations"}]",
isPublic: true,
topLayerURL: "https://example.topLayerURL"
}
const asset = await Asset.upload(assetPayload, apiKey);
Usage