Skip to content

ServiceBuilder

Usage

create
import { UrlFile, FileTypes, ServiceTypes, ServiceBuilder } from '@deltadao/nautilus'
 
const urlFile = { 
  type: 'url', 
  url: 'https://link.to/my/asset', 
  method: 'GET' 
} satisfies UrlFile
 
const serviceBuilder = new ServiceBuilder({ 
    serviceType: ServiceTypes.ACCESS, 
    fileType: FileTypes.URL
}) 
 
const service = serviceBuilder 
    .setServiceEndpoint('https://provider.dev.pontus-x.eu') 
    .setTimeout(0) 
    .addFile(urlFile) 
    .setPricing({ 
        type: 'free'
    }) 
    .build() 

ServiceTypes

  • ACCESS
  • COMPUTE

FileTypes

  • URL
  • IPFS
  • GRAPHQL
  • ARWEAVE
  • SMARTCONTRACT