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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client | Client<Transport, Chain> | Read-only viem client |
options | OptionsType | getUploadCosts.OptionsType |