# getPriceList

> **getPriceList**(`client`, `options?`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`OutputType`](/reference/filoz/synapse-core/warm-storage/namespaces/getpricelist/type-aliases/outputtype/)\>

Defined in: [packages/synapse-core/src/warm-storage/price-list.ts:84](https://github.com/FilOzone/synapse-sdk/blob/ac439ced73387be0f1e7ed7e635dce4bdba76399/packages/synapse-core/src/warm-storage/price-list.ts#L84)

Read the warm storage price list.

Reads the `getPriceList()` view on `FilecoinWarmStorageServiceStateView`.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `client` | `Client`\<`Transport`, `Chain`\> | The client to use to read the price list. |
| `options` | [`OptionsType`](/reference/filoz/synapse-core/warm-storage/namespaces/getpricelist/type-aliases/optionstype/) | [getPriceList.OptionsType](/reference/filoz/synapse-core/warm-storage/namespaces/getpricelist/type-aliases/optionstype/) |

## Returns

[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`OutputType`](/reference/filoz/synapse-core/warm-storage/namespaces/getpricelist/type-aliases/outputtype/)\>

The price list [getPriceList.OutputType](/reference/filoz/synapse-core/warm-storage/namespaces/getpricelist/type-aliases/outputtype/)

## Throws

Errors [getPriceList.ErrorType](/reference/filoz/synapse-core/warm-storage/namespaces/getpricelist/type-aliases/errortype/)

## Example

```ts
import { getPriceList } 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 priceList = await getPriceList(client)

console.log(priceList.rates.storagePerTibPerMonth)
```