Interface: PostageBatchOptions
Defined in: bee-js/src/types/index.ts:587
Options for creation of postage batch
Properties
gasPrice?
optionalgasPrice:string|bigint|NumberString
Defined in: bee-js/src/types/index.ts:596
Sets gas price in Wei for the transaction that creates the postage batch
immutableFlag?
optionalimmutableFlag:boolean
Defined in: bee-js/src/types/index.ts:601
Controls whether data can be overwritten that was uploaded with this postage batch.
label?
optionallabel:string
Defined in: bee-js/src/types/index.ts:591
Sets label for the postage batch
waitForUsable?
optionalwaitForUsable:boolean
Defined in: bee-js/src/types/index.ts:613
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?
optionalwaitForUsableTimeout:number
Defined in: bee-js/src/types/index.ts:619
When waiting for the postage stamp to become usable, this specify the timeout for the waiting. Default: 120s