Skip to content

edit

Edit an existing 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

edit.ts
import { Nautilus } from '@deltadao/nautilus'
import { Wallet } from 'ethers'
import { editAsset } from './asset'
 
const nautilus = await Nautilus.create(new Wallet('0x1234'))
 
const aquariusAsset = await nautilus.getAquariusAsset( 
    'did:op:926098d069b017dcf3736370f3c3d77e6046ca6622af111229accf5f9c83e308'
) 
 
const editedAsset = editAsset(aquariusAsset) 
 
await nautilus.edit(editedAsset) 

Returns

PublishResponse

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

Parameters

asset

  • Type: NautilusAsset

The asset that should be published.

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