setNftTokenTransferable
Enable/disable the ability to transfer the NFT token to another address.
The default value of transferable
is false
if setNftTokenTransferable
is not called.
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.setNftTokenTransferable(false)
const asset = assetBuilder.build()
await nautilus.publish(asset)
Returns
- Type:
AssetBuilder
The asset builder instance to chain building calls with.
Parameter
transferable
- Type:
boolean
false
- NFT is not transferable.true
- NFT is transferable.undefined
- defaults totrue
(NFT is transferable)
assetBuilder.setNftTokenTransferable(
true
)