Skip to content

getServicePrice

getServicePrice(client, options): Promise<OutputType>

Defined in: packages/synapse-core/src/warm-storage/get-service-price.ts:67

Get the service price for the warm storage

ParameterTypeDescription
clientClient<Transport, Chain>The client to use to get the service price.
optionsOptionsTypegetServicePrice.OptionsType

Promise<OutputType>

The service price getServicePrice.OutputType

Errors getServicePrice.ErrorType

import { getServicePrice } from '@filoz/synapse-core/warm-storage'
import { createPublicClient, http } from 'viem'
import { calibration } from '@filoz/synapse-core/chains'
const client = createPublicClient({
chain: calibration,
transport: http(),
})
const price = await getServicePrice(client, {})
console.log(price.pricePerTiBPerMonthNoCDN)