Skip to content
LogoLogo

addLinks

Add links to useful resources to the description of your asset.

Usage

import { ,  } from '@deltadao/nautilus'
import {  } from 'ethers'
 
const  = await .(new ('0x1234'))
 
const  = new ()
 
.(['https://some.example.of/my/data', 'https://link.to/the/schema/of/my-data']) 
const  = .() 
 
await .() 
ddo.metadata:
{
links: {
'link-0': 'https://some.example.of/my/data',
'link-1': 'https://link.to/the/schema/of/my-data'
}
}
.({ 
  : 'https://some.example.of/my/data', 
  : 'https://link.to/the/schema/of/my-data'
}) 

Returns

The asset builder instance, to chain further calls with.

Parameters

  • Type: string[] | Record<string, string>

The links to add. Repeated calls accumulate; an array continues the link-N numbering from whatever is already there.

.(
    ['https://some.example.of/my/data', 'https://link.to/the/schema/of/my-data'] 
)