Skip to main content

Function: getAmountForDuration()

getAmountForDuration(duration, pricePerBlock, blockTime): bigint

Defined in: bee-js/src/utils/stamps.ts:52

Get the postage batch amount required for a given duration.

Parameters

duration

Duration

A duration object representing the duration of the storage.

pricePerBlock

number

The price per block in PLUR.

blockTime

number

The block time in seconds.

Returns

bigint

💬 Get Help