Class: FungibleAsset
api/entities/Asset/Fungible.FungibleAsset
Class used to manage all Fungible Asset functionality
Hierarchy
-
↳
FungibleAsset
Properties
assetHolders
• assetHolders: AssetHolders
Defined in
api/entities/Asset/Fungible/index.ts:50
checkpoints
• checkpoints: Checkpoints
Defined in
api/entities/Asset/Fungible/index.ts:54
compliance
• compliance: Compliance
Inherited from
Defined in
api/entities/Asset/Base/BaseAsset.ts:66
corporateActions
• corporateActions: CorporateActions
Defined in
api/entities/Asset/Fungible/index.ts:55
did
• did: string
Identity ID of the Asset (used for Claims)
Inherited from
Defined in
api/entities/Asset/Base/BaseAsset.ts:74
documents
• documents: Documents
Inherited from
Defined in
api/entities/Asset/Base/BaseAsset.ts:67
issuance
• issuance: Issuance
Defined in
api/entities/Asset/Fungible/index.ts:51
metadata
• metadata: Metadata
Inherited from
Defined in
api/entities/Asset/Base/BaseAsset.ts:68
offerings
• offerings: Offerings
Defined in
api/entities/Asset/Fungible/index.ts:53
permissions
• permissions: Permissions
Inherited from
Defined in
api/entities/Asset/Base/BaseAsset.ts:69
settlements
• settlements: FungibleSettlements
Defined in
api/entities/Asset/Fungible/index.ts:49
ticker
• ticker: string
ticker of the Asset
Inherited from
Defined in
api/entities/Asset/Base/BaseAsset.ts:79
transferRestrictions
• transferRestrictions: TransferRestrictions
Defined in
api/entities/Asset/Fungible/index.ts:52
uuid
• uuid: string
Inherited from
Defined in
Methods
addRequiredMediators
▸ addRequiredMediators(args
, opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Add required mediators. Mediators must approve any trades involving the asset
Parameters
Name | Type |
---|---|
args | AssetMediatorParams |
opts? | ProcedureOpts |
Returns
Promise
<GenericPolymeshTransaction
<void
, void
>>
Note
this method is of type ProcedureMethod, which means you can call addRequiredMediators.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Inherited from
BaseAsset.addRequiredMediators
Defined in
api/entities/Asset/Base/BaseAsset.ts:218
controllerTransfer
▸ controllerTransfer(args
, opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Force a transfer from a given Portfolio to the caller’s default Portfolio
Parameters
Name | Type |
---|---|
args | ControllerTransferParams |
opts? | ProcedureOpts |
Returns
Promise
<GenericPolymeshTransaction
<void
, void
>>
Note
this method is of type ProcedureMethod, which means you can call controllerTransfer.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Defined in
api/entities/Asset/Fungible/index.ts:153
createdAt
▸ createdAt(): Promise
<null
| EventIdentifier
>
Retrieve the identifier data (block number, date and event index) of the event that was emitted when the token was created
Returns
Promise
<null
| EventIdentifier
>
Note
uses the middlewareV2
Note
there is a possibility that the data is not ready by the time it is requested. In that case, null
is returned
Defined in
api/entities/Asset/Fungible/index.ts:92
currentFundingRound
▸ currentFundingRound(): Promise
<null
| string
>
Retrieve the Asset's funding round
Returns
Promise
<null
| string
>
Note
can be subscribed to, if connected to node using a web socket
Inherited from
Defined in
api/entities/Asset/Base/BaseAsset.ts:457
▸ currentFundingRound(callback
): Promise
<UnsubCallback
>
Parameters
Name | Type |
---|---|
callback | SubCallback <null | string > |
Returns
Promise
<UnsubCallback
>
Inherited from
Defined in
api/entities/Asset/Base/BaseAsset.ts:458
details
▸ details(): Promise
<AssetDetails
>
Retrieve the Asset's data
Returns
Promise
<AssetDetails
>
Note
can be subscribed to, if connected to node using a web socket
Inherited from
Defined in
api/entities/Asset/Base/BaseAsset.ts:309
▸ details(callback
): Promise
<UnsubCallback
>
Parameters
Name | Type |
---|---|
callback | SubCallback <AssetDetails > |
Returns
Promise
<UnsubCallback
>
Inherited from
Defined in
api/entities/Asset/Base/BaseAsset.ts:310
exists
▸ exists(): Promise
<boolean
>
Determine whether this FungibleAsset exists on chain
Returns
Promise
<boolean
>
Overrides
BaseAsset.exists
Defined in
api/entities/Asset/Fungible/index.ts:267
freeze
▸ freeze(opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Freeze transfers of the Asset
Parameters
Name | Type |
---|---|
opts? | ProcedureOpts |
Returns
Promise
<GenericPolymeshTransaction
<void
, void
>>
Note
this method is of type NoArgsProcedureMethod, which means you can call freeze.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Inherited from
Defined in
api/entities/Asset/Base/BaseAsset.ts:198
getIdentifiers
▸ getIdentifiers(): Promise
<SecurityIdentifier
[]>
Retrieve the Asset's identifiers list
Returns
Promise
<SecurityIdentifier
[]>
Note
can be subscribed to, if connected to node using a web socket
Inherited from
Defined in
api/entities/Asset/Base/BaseAsset.ts:237
▸ getIdentifiers(callback?
): Promise
<UnsubCallback
>
Parameters
Name | Type |
---|---|
callback? | SubCallback <SecurityIdentifier []> |
Returns
Promise
<UnsubCallback
>
Inherited from
Defined in
api/entities/Asset/Base/BaseAsset.ts:238
getOperationHistory
▸ getOperationHistory(): Promise
<HistoricAgentOperation
[]>
Retrieve this Asset's Operation History
Returns
Promise
<HistoricAgentOperation
[]>
Note
Operations are grouped by the agent Identity who performed them
Note
uses the middlewareV2
Defined in
api/entities/Asset/Fungible/index.ts:164
getRequiredMediators
▸ getRequiredMediators(): Promise
<Identity
[]>
Get required Asset mediators. These Identities must approve any Instruction involving the asset
Returns
Promise
<Identity
[]>
Inherited from
BaseAsset.getRequiredMediators
Defined in
api/entities/Asset/Base/BaseAsset.ts:403
getTransactionHistory
▸ getTransactionHistory(opts
): Promise
<ResultSet
<HistoricAssetTransaction
>>
Retrieve this Asset's transaction History
Parameters
Name | Type |
---|---|
opts | Object |
opts.size? | BigNumber |
opts.start? | BigNumber |
Returns
Promise
<ResultSet
<HistoricAssetTransaction
>>
Note
uses the middlewareV2
Defined in
api/entities/Asset/Fungible/index.ts:195
getVenueFilteringDetails
▸ getVenueFilteringDetails(): Promise
<VenueFilteringDetails
>
Get venue filtering details
Returns
Promise
<VenueFilteringDetails
>
Inherited from
BaseAsset.getVenueFilteringDetails
Defined in
api/entities/Asset/Base/BaseAsset.ts:422
investorCount
▸ investorCount(): Promise
<BigNumber
>
Retrieve the amount of unique investors that hold this Asset
Returns
Promise
<BigNumber
>
Defined in
api/entities/Asset/Fungible/index.ts:123
isEqual
▸ isEqual(entity
): boolean
Determine whether this Entity is the same as another one
Parameters
Name | Type |
---|---|
entity | Entity <unknown , unknown > |
Returns
boolean