Class: FungibleAsset
Defined in: src/api/entities/Asset/Fungible/index.ts:55
Class used to manage all Fungible Asset functionality
Extends
Properties
assetHolders
assetHolders:
AssetHolders
Defined in: src/api/entities/Asset/Fungible/index.ts:57
checkpoints
checkpoints:
Checkpoints
Defined in: src/api/entities/Asset/Fungible/index.ts:61
compliance
compliance:
Compliance
Defined in: src/api/entities/Asset/Base/BaseAsset.ts:70
Inherited from
corporateActions
corporateActions:
CorporateActions
Defined in: src/api/entities/Asset/Fungible/index.ts:62
documents
documents:
Documents
Defined in: src/api/entities/Asset/Base/BaseAsset.ts:71
Inherited from
id
id:
string
Defined in: src/api/entities/Asset/Base/BaseAsset.ts:78
Unique ID of the Asset in UUID format
Inherited from
issuance
issuance:
Issuance
Defined in: src/api/entities/Asset/Fungible/index.ts:58
metadata
metadata:
Metadata
Defined in: src/api/entities/Asset/Base/BaseAsset.ts:72
Inherited from
offerings
offerings:
Offerings
Defined in: src/api/entities/Asset/Fungible/index.ts:60
permissions
permissions:
Permissions
Defined in: src/api/entities/Asset/Base/BaseAsset.ts:73
Inherited from
settlements
settlements:
FungibleSettlements
Defined in: src/api/entities/Asset/Fungible/index.ts:56
transferRestrictions
transferRestrictions:
TransferRestrictions
Defined in: src/api/entities/Asset/Fungible/index.ts:59
uuid
uuid:
string
Defined in: src/api/entities/Entity.ts:46
Inherited from
Accessors
rawId
Get Signature
get rawId():
string
Defined in: src/api/entities/Asset/Base/BaseAsset.ts:85
Unique ID of the Asset in hex format
Note
Although UUID format is the usual representation of asset IDs, generic polkadot/substrate tools usually expect it in hex format
Returns
string
Inherited from
Methods
addRequiredMediators()
addRequiredMediators(
args:AssetMediatorParams,opts?:ProcedureOpts):Promise<GenericPolymeshTransaction<void,void>>
Defined in: src/api/entities/Asset/Base/BaseAsset.ts:212
Add required mediators. Mediators must approve any trades involving the asset
Parameters
| Parameter | Type |
|---|---|
| |
|
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
approveAllowance()
approveAllowance(
args:ApproveAllowanceParams,opts?:ProcedureOpts):Promise<GenericPolymeshTransaction<void,void>>
Defined in: src/api/entities/Asset/Fungible/index.ts:301
Approve spender account allowance for transferring this Asset
Parameters
| Parameter | Type |
|---|---|
| |
|
Returns
Promise<GenericPolymeshTransaction<void, void>>
Note
Replaces any existing allowance for this if an allowance already exists for spender account for this Asset.
Setting amount to 0 revokes the allowance.
On every spend transaction, the spender account's allowance will be decremented by the amount transferred.
Note
this method is of type ProcedureMethod, which means you can call approveAllowance.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
controllerTransfer()
controllerTransfer(
args:ControllerTransferParams,opts?:ProcedureOpts):Promise<GenericPolymeshTransaction<void,void>>
Defined in: src/api/entities/Asset/Fungible/index.ts:153
Force a transfer from a given Portfolio to the caller’s default Portfolio
Parameters
| Parameter | Type |
|---|---|
| |
|
Returns
Promise<GenericPolymeshTransaction<void, void>>