Class: Balance
Defined in: bee-js/src/modules/balance.ts:12
SWAP balance operations. Related to the bandwidth incentives and the chequebook.
Accessed as bee.balance.
Constructors
Constructor
new Balance(
context):Balance
Defined in: bee-js/src/modules/balance.ts:13
Parameters
context
BeeContext
Returns
Balance
Methods
getAll()
getAll(
requestOptions?):Promise<BalanceResponse>
Defined in: bee-js/src/modules/balance.ts:20
Gets the SWAP balances with all known peers including prepaid services.
Parameters
requestOptions?
Options for making requests, such as timeouts, custom HTTP agents, headers, etc.
Returns
Promise<BalanceResponse>
getAllPastDueConsumption()
getAllPastDueConsumption(
requestOptions?):Promise<BalanceResponse>
Defined in: bee-js/src/modules/balance.ts:41
Gets the past due consumption balances for all known peers.
Parameters
requestOptions?
Options for making requests, such as timeouts, custom HTTP agents, headers, etc.
Returns
Promise<BalanceResponse>