Skip to content

addTags

Add any additional information you might need to describe your asset.

Official OceanProtocol documentation: DDO Specification

Usage

import { AssetBuilder, Nautilus } from '@deltadao/nautilus'
import { Wallet } from 'ethers'
 
const nautilus = await Nautilus.create(new Wallet('0x1234'))
 
const assetBuilder = new AssetBuilder()
 
assetBuilder.addTags(['ai', 'manufacturing', 'industry-4.0']) 
const asset = assetBuilder.build() 
 
await nautilus.publish(asset) 
ddo.metadata:
{
tags: ['ai', 'manufacturing', 'industry-4.0']
}

Returns

The asset builder instance to chain building calls with.

Parameter

tags

  • Type: string[]

The tags you want to add to the asset to be built.

assetBuilder.addTags(
    ['ai', 'manufacturing', 'industry-4.0'] 
)