Skip to content

setNftTokenName

Set the name of the NFT.

The default token name is Nautilus Dataservice NFT.

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.setNftTokenName('NFT name') 
const asset = assetBuilder.build() 
 
await nautilus.publish(asset) 

Returns

The asset builder instance to chain building calls with.

Parameter

name

  • Type: string

A short descriptive name to use for the NFT.

assetBuilder.setNftTokenName(
    'NFT name'
)