# getClientNonceCall

> **getClientNonceCall**(`options`): `object`

Defined in: [packages/synapse-core/src/warm-storage/get-client-nonce.ts:96](https://github.com/FilOzone/synapse-sdk/blob/56f1ef3fb5ccfea19fb80cb59e997e381f37d85a/packages/synapse-core/src/warm-storage/get-client-nonce.ts#L96)

Create a call to the [getClientNonce](/reference/filoz/synapse-core/warm-storage/functions/getclientnonce/) function for use with the Viem multicall, readContract, or simulateContract functions.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `options` | \{ `chain`: `Chain`; `contractAddress?`: `` `0x${string}` ``; `nonce`: `bigint`; `payer`: `` `0x${string}` ``; \} | [getClientNonceCall.OptionsType](/reference/filoz/synapse-core/warm-storage/namespaces/getclientnoncecall/type-aliases/optionstype/) |
| `options.chain` | `Chain` | The chain to use to make the call. |
| `options.contractAddress?` | `` `0x${string}` `` | Warm storage view contract address. If not provided, the default is the storage view contract address for the chain. |
| `options.nonce` | `bigint` | The nonce: a client data set ID for create data set, or the add pieces nonce. |
| `options.payer` | `` `0x${string}` `` | The payer the nonce was signed for. |

## Returns

`object`

The call to the clientNonces function [getClientNonceCall.OutputType](/reference/filoz/synapse-core/warm-storage/namespaces/getclientnoncecall/type-aliases/outputtype/)

### abi

> **abi**: readonly \[\{ `inputs`: readonly \[\{ `internalType`: `"contract FilecoinWarmStorageService"`; `name`: `"_service"`; `type`: `"address"`; \}\]; `stateMutability`: `"nonpayable"`; `type`: `"constructor"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"payer"`; `type`: `"address"`; \}, \{ `internalType`: `"uint256"`; `name`: `"offset"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"limit"`; `type`: `"uint256"`; \}\]; `name`: `"clientDataSets"`; `outputs`: readonly \[\{ `internalType`: `"uint256[]"`; `name`: `"dataSetIds"`; `type`: `"uint256[]"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"payer"`; `type`: `"address"`; \}\]; `name`: `"clientDataSets"`; `outputs`: readonly \[\{ `internalType`: `"uint256[]"`; `name`: `"dataSetIds"`; `type`: `"uint256[]"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"payer"`; `type`: `"address"`; \}, \{ `internalType`: `"uint256"`; `name`: `"nonce"`; `type`: `"uint256"`; \}\]; `name`: `"clientNonces"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"filBeamControllerAddress"`; `outputs`: readonly \[\{ `internalType`: `"address"`; `name`: `""`; `type`: `"address"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"dataSetId"`; `type`: `"uint256"`; \}\]; `name`: `"getAllDataSetMetadata"`; `outputs`: readonly \[\{ `internalType`: `"string[]"`; `name`: `"keys"`; `type`: `"string[]"`; \}, \{ `internalType`: `"string[]"`; `name`: `"values"`; `type`: `"string[]"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"offset"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"limit"`; `type`: `"uint256"`; \}\]; `name`: `"getApprovedProviders"`; `outputs`: readonly \[\{ `internalType`: `"uint256[]"`; `name`: `"providerIds"`; `type`: `"uint256[]"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"getApprovedProvidersLength"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"count"`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"client"`; `type`: `"address"`; \}, \{ `internalType`: `"uint256"`; `name`: `"offset"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"limit"`; `type`: `"uint256"`; \}\]; `name`: `"getClientDataSets"`; `outputs`: readonly \[\{ `components`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"pdpRailId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"cacheMissRailId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"cdnRailId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"address"`; `name`: `"payer"`; `type`: `"address"`; \}, \{ `internalType`: `"address"`; `name`: `"payee"`; `type`: `"address"`; \}, \{ `internalType`: `"address"`; `name`: `"serviceProvider"`; `type`: `"address"`; \}, \{ `internalType`: `"uint256"`; `name`: `"commissionBps"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"clientDataSetId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"pdpEndEpoch"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"providerId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint96"`; `name`: `"pendingOneTimePayments"`; `type`: `"uint96"`; \}, \{ `internalType`: `"uint96"`; `name`: `"lifecycleReserveBalance"`; `type`: `"uint96"`; \}, \{ `internalType`: `"uint256"`; `name`: `"dataSetId"`; `type`: `"uint256"`; \}\]; `internalType`: `"struct FilecoinWarmStorageService.DataSetInfoView[]"`; `name`: `"infos"`; `type`: `"tuple[]"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"client"`; `type`: `"address"`; \}\]; `name`: `"getClientDataSets"`; `outputs`: readonly \[\{ `components`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"pdpRailId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"cacheMissRailId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"cdnRailId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"address"`; `name`: `"payer"`; `type`: `"address"`; \}, \{ `internalType`: `"address"`; `name`: `"payee"`; `type`: `"address"`; \}, \{ `internalType`: `"address"`; `name`: `"serviceProvider"`; `type`: `"address"`; \}, \{ `internalType`: `"uint256"`; `name`: `"commissionBps"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"clientDataSetId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"pdpEndEpoch"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"providerId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint96"`; `name`: `"pendingOneTimePayments"`; `type`: `"uint96"`; \}, \{ `internalType`: `"uint96"`; `name`: `"lifecycleReserveBalance"`; `type`: `"uint96"`; \}, \{ `internalType`: `"uint256"`; `name`: `"dataSetId"`; `type`: `"uint256"`; \}\]; `internalType`: `"struct FilecoinWarmStorageService.DataSetInfoView[]"`; `name`: `"infos"`; `type`: `"tuple[]"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"payer"`; `type`: `"address"`; \}\]; `name`: `"getClientDataSetsLength"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"getCurrentPricingRates"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"storagePrice"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"datasetFee"`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"dataSetId"`; `type`: `"uint256"`; \}\]; `name`: `"getDataSet"`; `outputs`: readonly \[\{ `components`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"pdpRailId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"cacheMissRailId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"cdnRailId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"address"`; `name`: `"payer"`; `type`: `"address"`; \}, \{ `internalType`: `"address"`; `name`: `"payee"`; `type`: `"address"`; \}, \{ `internalType`: `"address"`; `name`: `"serviceProvider"`; `type`: `"address"`; \}, \{ `internalType`: `"uint256"`; `name`: `"commissionBps"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"clientDataSetId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"pdpEndEpoch"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"providerId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint96"`; `name`: `"pendingOneTimePayments"`; `type`: `"uint96"`; \}, \{ `internalType`: `"uint96"`; `name`: `"lifecycleReserveBalance"`; `type`: `"uint96"`; \}, \{ `internalType`: `"uint256"`; `name`: `"dataSetId"`; `type`: `"uint256"`; \}\]; `internalType`: `"struct FilecoinWarmStorageService.DataSetInfoView"`; `name`: `"info"`; `type`: `"tuple"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"dataSetId"`; `type`: `"uint256"`; \}\]; `name`: `"getDataSetAuthorizer"`; `outputs`: readonly \[\{ `internalType`: `"address"`; `name`: `""`; `type`: `"address"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"dataSetId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"string"`; `name`: `"key"`; `type`: `"string"`; \}\]; `name`: `"getDataSetMetadata"`; `outputs`: readonly \[\{ `internalType`: `"bool"`; `name`: `"exists"`; `type`: `"bool"`; \}, \{ `internalType`: `"string"`; `name`: `"value"`; `type`: `"string"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"leafCount"`; `type`: `"uint256"`; \}\]; `name`: `"getDataSetSizeInBytes"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"pure"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"dataSetId"`; `type`: `"uint256"`; \}\]; `name`: `"getDataSetStatus"`; `outputs`: readonly \[\{ `internalType`: `"enum FilecoinWarmStorageService.DataSetStatus"`; `name`: `"status"`; `type`: `"uint8"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"getPDPConfig"`; `outputs`: readonly \[\{ `internalType`: `"uint64"`; `name`: `"maxProvingPeriod"`; `type`: `"uint64"`; \}, \{ `internalType`: `"uint256"`; `name`: `"challengeWindowSize"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"challengesPerProof"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"initChallengeWindowStart"`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"getPriceList"`; `outputs`: readonly \[\{ `components`: readonly \[\{ `internalType`: `"contract IERC20"`; `name`: `"token"`; `type`: `"address"`; \}, \{ `components`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"storagePerTibPerMonth"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"datasetFeePerMonth"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"cdnEgressPerTib"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"cacheMissEgressPerTib"`; `type`: `"uint256"`; \}\]; `internalType`: `"struct PriceListRates"`; `name`: `"rates"`; `type`: `"tuple"`; \}, \{ `components`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"createDataSetFee"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"addPiecesBaseFee"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"addPiecesPerPieceFee"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"schedulePieceRemovalsFee"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"terminateFee"`; `type`: `"uint256"`; \}\]; `internalType`: `"struct PriceListFees"`; `name`: `"fees"`; `type`: `"tuple"`; \}, \{ `components`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"lifecycleReserveTarget"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"replenishThreshold"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"defaultLockupPeriod"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"cdnLockupAmount"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"cacheMissLockupAmount"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"cdnLockupPeriod"`; `type`: `"uint256"`; \}\]; `internalType`: `"struct PriceListLockups"`; `name`: `"lockups"`; `type`: `"tuple"`; \}\]; `internalType`: `"struct PriceList"`; `name`: `"list"`; `type`: `"tuple"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"providerId"`; `type`: `"uint256"`; \}\]; `name`: `"isProviderApproved"`; `outputs`: readonly \[\{ `internalType`: `"bool"`; `name`: `""`; `type`: `"bool"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}\]; `name`: `"nextPDPChallengeWindowStart"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"nextUpgrade"`; `outputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"nextImplementation"`; `type`: `"address"`; \}, \{ `internalType`: `"uint96"`; `name`: `"afterEpoch"`; `type`: `"uint96"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"dataSetId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"periodId"`; `type`: `"uint256"`; \}\]; `name`: `"provenPeriods"`; `outputs`: readonly \[\{ `internalType`: `"bool"`; `name`: `""`; `type`: `"bool"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"dataSetId"`; `type`: `"uint256"`; \}\]; `name`: `"provenThisPeriod"`; `outputs`: readonly \[\{ `internalType`: `"bool"`; `name`: `""`; `type`: `"bool"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"dataSetId"`; `type`: `"uint256"`; \}\]; `name`: `"provingActivationEpoch"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}\]; `name`: `"provingDeadline"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"railId"`; `type`: `"uint256"`; \}\]; `name`: `"railToDataSet"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"service"`; `outputs`: readonly \[\{ `internalType`: `"contract FilecoinWarmStorageService"`; `name`: `""`; `type`: `"address"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"serviceCommissionBps"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"dataSetId"`; `type`: `"uint256"`; \}\]; `name`: `"ProvingPeriodNotInitialized"`; `type`: `"error"`; \}\] = `chain.contracts.fwssView.abi`

### address

> **address**: `` `0x${string}` ``

### args

> **args**: \[`` `0x${string}` ``, `bigint`\]

### functionName

> **functionName**: `"clientNonces"` = `'clientNonces'`

## Throws

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