api.entities.Asset.Fungible.AssetHolders - PolymeshAssociation/polymesh-sdk GitHub Wiki
@polymeshassociation/polymesh-sdk / api/entities/Asset/Fungible/AssetHolders
api/entities/Asset/Fungible/AssetHolders
Classes
AssetHolders
Defined in: api/entities/Asset/Fungible/AssetHolders/index.ts:17
Handles all Asset Holders related functionality
Extends
Namespace<FungibleAsset>
Methods
get()
get(
paginationOpts?):Promise<ResultSet<IdentityBalance>>
Defined in: api/entities/Asset/Fungible/AssetHolders/index.ts:23
Retrieve all the Asset Holders with their respective balance
Parameters
| Parameter | Type |
|---|---|
paginationOpts? |
PaginationOptions |
Returns
Promise<ResultSet<IdentityBalance>>
Note
supports pagination
getFreezeStatus()
getFreezeStatus(
args):Promise<HolderFreezeStatus>
Defined in: api/entities/Asset/Fungible/AssetHolders/index.ts:63
Retrieve how an Asset agent has frozen one holder of this Asset: whether it is frozen outright, and how much of its balance is frozen
Parameters
| Parameter | Type | Description |
|---|---|---|
args |
{ holder: AssetHolderLike; } |
- |
args.holder |
AssetHolderLike |
an Account or a Portfolio. Freezing applies to the holder given, not to its Identity: freezing one of an Identity's Accounts leaves its other Accounts and its Portfolios free |
Returns
Promise<HolderFreezeStatus>
Note
a holder's balance already excludes the frozen amount from free. See
PortfolioBalance
Note
always reports an unfrozen holder before Polymesh 8.1.1, which cannot freeze one