Skip to content

getUploadCosts

getUploadCosts(client, options): Promise<OutputType>

Defined in: packages/synapse-core/src/warm-storage/get-upload-costs.ts:60

Read-only function that computes upload costs, deposit needed, and approval state.

Fetches account state, pricing, and approval via read-only contract calls, then feeds results into pure calculation functions.

ParameterTypeDescription
clientClient<Transport, Chain>Read-only viem client
optionsOptionsTypegetUploadCosts.OptionsType

Promise<OutputType>

getUploadCosts.OutputType