Class: Subsidies
api/entities/Subsidies.Subsidies
Handles all Account Subsidies related functionality
Hierarchy
-
Namespace<Account>↳
Subsidies
Methods
getBeneficiaries
▸ getBeneficiaries(): Promise<SubsidyWithAllowance[]>
Get the list of Subsidy relationship along with their subsidized amount for which this Account is the subsidizer
Returns
Promise<SubsidyWithAllowance[]>
Defined in
getSubsidizer
▸ getSubsidizer(): Promise<null | SubsidyWithAllowance>
Get the Subsidy relationship along with the subsidized amount for this Account is the beneficiary. If this Account isn't being subsidized, return null
Returns
Promise<null | SubsidyWithAllowance>
Note
can be subscribed to, if connected to node using a web socket
Defined in
▸ getSubsidizer(callback): Promise<UnsubCallback>
Parameters
| Name | Type |
|---|---|
callback | SubCallback<null | SubsidyWithAllowance> |
Returns
Promise<UnsubCallback>