Skip to content

publish

Publishes a new asset as defined by customizeable metadata.

If you want to learn more about how to build your metadata using nautilus' builder classes, the AssetBuilder documentation is a good place to start.

Usage

publish.ts
import { Nautilus } from '@deltadao/nautilus'
import { Wallet } from 'ethers'
import { asset } from './asset'
 
const nautilus = await Nautilus.create(new Wallet('0x1234'))
 
await nautilus.publish(asset) 

Returns

PublishResponse

An object containing all relevant information that was created during the publish process.

Parameters

asset

  • Type: NautilusAsset

The asset that should be published.

Refer to the AssetBuilder documentation for more information on how to construct assets.