NumberedPortfolio
Last updated
Was this helpful?
Last updated
Was this helpful?
Represents a numbered (non-default) Portfolio for an Identity
↳
↳ NumberedPortfolio
Protected
Optional
_id• _id? : BigNumber
internal Portfolio identifier (unused for default Portfolio)
Protected
context• context: Context
• id: BigNumber
Portfolio identifier number
Identity of the Portfolio's owner
• uuid: string
Retrieve the identifier data (block number, date and event index) of the event that was emitted when this Portfolio was created
note
uses the middleware
note
there is a possibility that the data is not ready by the time it is requested. In that case, null
is returned
Retrieve the identifier data (block number, date and event index) of the event that was emitted when this Portfolio was created
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
▸ exists(): Promise‹boolean›
Return whether this Portfolio exists
Returns: Promise‹boolean›
Retrieve the balances of all Assets in this Portfolio
Parameters:
args?
undefined | object
Retrieve the custodian Identity of this Portfolio
note
if no custodian is set, the owner Identity is returned
▸ getName(): Promise‹string›
Return the Portfolio name
Returns: Promise‹string›
Retrieve a list of transactions where this portfolio was involved. Can be filtered using parameters
note
supports pagination
note
uses the middleware
Parameters:
â–ªDefault value
filters: object= {}
account?
undefined | string
Account involved in the settlement
size?
BigNumber
page size
start?
BigNumber
page offset
ticker?
undefined | string
ticker involved in the transaction
Retrieve a list of transactions where this portfolio was involved. Can be filtered using parameters
note
uses the middlewareV2
Parameters:
â–ªDefault value
filters: object= {}
account?
undefined | string
Account involved in the settlement
ticker?
undefined | string
ticker involved in the transaction
â–¸ isCustodiedBy(args?
: undefined | object): Promise‹boolean›
Return whether an Identity is the Portfolio custodian
Parameters:
args?
undefined | object
Returns: Promise‹boolean›
Determine whether this Entity is the same as another one
Parameters:
entity
Returns: boolean
â–¸ isOwnedBy(args?
: undefined | object): Promise‹boolean›
Return whether an Identity is the Portfolio owner
Parameters:
args?
undefined | object
Returns: Promise‹boolean›
Rename portfolio
note
required role:
Portfolio Custodian
Parameters:
args
opts?
Moves funds from this Portfolio to another one owned by the same Identity
note
required role:
Portfolio Custodian
Parameters:
args
opts?
Returns the custody of the portfolio to the portfolio owner unilaterally
note
required role:
Portfolio Custodian
Parameters:
opts?
Send an invitation to an Identity to assign it as custodian for this Portfolio
note
required role:
Portfolio Custodian
Parameters:
args
opts?
Return the Portfolio ID and owner DID
Static
generateUuid▸ generateUuid‹Identifiers›(identifiers
: Identifiers): string
Generate the Entity's UUID from its identifying properties
Type parameters:
â–ª Identifiers
Parameters:
identifiers
Identifiers
Returns: string
Static
unserialize▸ unserialize‹Identifiers›(serialized
: string): Identifiers
Unserialize a UUID into its Unique Identifiers
Type parameters:
â–ª Identifiers
Parameters:
serialized
string
UUID to unserialize
Returns: Identifiers
Inherited from .
Defined in
Inherited from .
Defined in
Defined in
• owner:
Inherited from .
Defined in
Inherited from .
Defined in
▸ createdAt(): Promise‹ | null›
Defined in
Returns: Promise‹ | null›
▸ createdAtV2(): Promise‹ | null›
Defined in
Returns: Promise‹ | null›
Overrides .
Defined in
â–¸ getAssetBalances(args?
: undefined | object): Promise‹[]›
Inherited from .
Defined in
Returns: Promise‹[]›
▸ getCustodian(): Promise‹›
Inherited from .
Defined in
Returns: Promise‹›
Defined in
â–¸ getTransactionHistory(filters
: object): Promise‹‹››
Inherited from .
Defined in
Returns: Promise‹‹››
â–¸ getTransactionHistoryV2(filters
: object): Promise‹[]›
Inherited from .
Defined in
Returns: Promise‹[]›
Inherited from .
Defined in
â–¸ isEqual(entity
: ‹unknown, unknown›): boolean
Inherited from .
Defined in
‹unknown, unknown›
Inherited from .
Defined in
â–¸ modifyName(args
: , opts?
: ): Promise‹‹››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››
â–¸ moveFunds(args
: , opts?
: ): Promise‹‹void››
Inherited from .
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹void››
â–¸ quitCustody(opts?
: ): Promise‹‹void››
Inherited from .
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹void››
â–¸ setCustodian(args
: , opts?
: ): Promise‹‹››
Inherited from .
Defined in
note
this will create an which has to be accepted by the targetIdentity
. An or can fetch its pending Authorization Requests by calling . Also, an Account or Identity can directly fetch the details of an Authorization Request by calling
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››
â–¸ toHuman():
Inherited from .
Overrides .
Defined in
Returns:
Inherited from .
Defined in
Inherited from .
Defined in