addService
Adds a pre-defined service to the description of your asset.
To learn more about building services, please refer to the ServiceBuilder documentation.
Usage
import { , , } from '@deltadao/nautilus'
import { } from 'ethers'
import { } from './service'
const = await .(new ('0x1234'))
const = new ()
.()
const = .()
await .()
ddo.services: [ { id: '6a0faa655f70198dd6457450eab66ae29a493ea861cfc666d563c897c65a0d26', datatokenAddress: '0x99358d0F9A92420C44138802ebd6e95De54801e4', type: 'access', serviceEndpoint: 'https://provider.dev.pontus-x.eu', timeout: 0, files: '0x046e589d49...' }]import { , , } from '@deltadao/nautilus'
const = new ({ : ., : . })
.({
: 'url',
: 'GET',
: 'https://delta-dao.com'
})
.('https://provider.dev.pontus-x.eu')
.(0)
export const = .() Returns
- Type:
AssetBuilder
The asset builder instance, to chain further calls with.
Parameters
service
- Type:
NautilusService
The service to be added to the asset.
To learn more about building services, please refer to the ServiceBuilder documentation.
.(
)