Portfolio
Last updated
Was this helpful?
Last updated
Was this helpful?
Represents a base Portfolio for a specific Identity in the Polymesh blockchain
‹UniqueIdentifiers›
↳ Portfolio
↳
↳
Protected
Optional
_id• _id? : BigNumber
internal Portfolio identifier (unused for default Portfolio)
Protected
contextidentity of the Portfolio's owner
• uuid: string
Retrieve the custodian Identity of this Portfolio
note
if no custodian is set, the owner Identity is returned
Retrieve the balances of all assets in this Portfolio
Parameters:
Name
Type
args?
undefined | object
▸ isCustodiedBy(args?
: undefined | object): Promise‹boolean›
Return whether an Identity is the Portfolio custodian
Parameters:
Name
Type
args?
undefined | object
Returns: Promise‹boolean›
▸ isOwnedBy(args?
: undefined | object): Promise‹boolean›
Return whether an Identity is the Portfolio owner
Parameters:
Name
Type
args?
undefined | object
Returns: Promise‹boolean›
Moves funds from this Portfolio to another one owned by the same Identity
Parameters:
Name
Type
args
Send an invitation to an Identity to assign it as custodian for this Portfolio
note
this may create an AuthorizationRequest which has to be accepted by the corresponding Identity. An Account or Identity can fetch its pending Authorization Requests by calling authorizations.getReceived
Parameters:
Name
Type
args
Static
generateUuid▸ generateUuid‹Identifiers›(identifiers
: Identifiers): string
Generate the Entity's UUID from its identifying properties
Type parameters:
▪ Identifiers: object
Parameters:
Name
Type
Description
identifiers
Identifiers
Returns: string
Static
unserialize▸ unserialize‹Identifiers›(serialized
: string): Identifiers
Unserialize a UUID into its Unique Identifiers
Type parameters:
▪ Identifiers: object
Parameters:
Name
Type
Description
serialized
string
UUID to unserialize
Returns: Identifiers
Defined in
• context:
Inherited from .
Defined in
• owner:
Defined in
Inherited from .
Defined in
▸ getCustodian(): Promise‹›
Defined in
Returns: Promise‹›
▸ getTokenBalances(args?
: undefined | object): Promise‹[]›
Defined in
Returns: Promise‹[]›
Defined in
Defined in
▸ moveFunds(args
: ): Promise‹‹void››
Defined in
Returns: Promise‹‹void››
▸ setCustodian(args
: ): Promise‹‹void››
Defined in
Returns: Promise‹‹void››
Inherited from .
Defined in
Inherited from .
Defined in