api.entities.Subsidies.Subsidies - PolymeshAssociation/polymesh-sdk GitHub Wiki

Class: Subsidies

api/entities/Subsidies.Subsidies

Handles all Account Subsidies related functionality

Hierarchy

Table of contents

Methods

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

api/entities/Subsidies.ts:12


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

api/entities/Subsidies.ts:61

getSubsidizer(callback): Promise<UnsubCallback>

Parameters

Name Type
callback SubCallback<null | SubsidyWithAllowance>

Returns

Promise<UnsubCallback>

Defined in

api/entities/Subsidies.ts:62