Function: estimateStorageCost()
estimateStorageCost(
client,size,epochs):Promise<StorageCost>
Defined in: @meddleware/walrus-storage-client/src/manage.ts:141
Estimate the on-chain storage cost of a blob, so the UI can price a chosen reservation or extension duration. Thin wrapper over the SDK's walrus.storageCost(size, epochs) — kept here so Vue layers (which must not import @mysten/walrus) can price durations through the injected client.
Parameters
client
ClientWithExtensions
A Walrus-extended client.
size
number
Unencoded blob size in bytes.
epochs
number
Number of epochs to price (reservation length, or epochs added on extend).
Returns
Promise<StorageCost>
Storage/write/total cost in MIST.