Skip to main content

Interface: PostageBatchOptions

Defined in: bee-js/src/types/index.ts:537

Options for creation of postage batch

Properties

gasPrice?

optional gasPrice: string | bigint | NumberString

Defined in: bee-js/src/types/index.ts:546

Sets gas price in Wei for the transaction that creates the postage batch


immutableFlag?

optional immutableFlag: boolean

Defined in: bee-js/src/types/index.ts:551

Controls whether data can be overwritten that was uploaded with this postage batch.


label?

optional label: string

Defined in: bee-js/src/types/index.ts:541

Sets label for the postage batch


waitForUsable?

optional waitForUsable: boolean

Defined in: bee-js/src/types/index.ts:563

The returned Promise will await until the purchased Postage Batch is usable. In other word, it has to have enough block confirmations that Bee pronounce it usable. When turned on, this significantly prolongs the creation of postage batch!

If you plan to use the stamp right away for some action with Bee (like uploading using this stamp) it is highly recommended to use this option, otherwise you might get errors "stamp not usable" from Bee.

Default

true

waitForUsableTimeout?

optional waitForUsableTimeout: number

Defined in: bee-js/src/types/index.ts:569

When waiting for the postage stamp to become usable, this specify the timeout for the waiting. Default: 120s

💬 Get Help