Skip to main content
Version: 23.2.x

Class: Portfolios

api/entities/Identity/Portfolios.Portfolios

Handles all Portfolio related functionality on the Identity side

Hierarchy

Methods

delete

delete(args, opts?): Promise<GenericPolymeshTransaction<void, void>>

Delete a Portfolio by ID

Parameters

NameType
argsObject
args.portfolioBigNumber | NumberedPortfolio
opts?ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<void, void>>

Note

required role:

  • Portfolio Custodian

Note

this method is of type ProcedureMethod, which means you can call delete.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Defined in

api/entities/Identity/Portfolios.ts:163


getCustodiedPortfolios

getCustodiedPortfolios(paginationOpts?): Promise<ResultSet<NumberedPortfolio | DefaultPortfolio>>

Retrieve all Portfolios custodied by this Identity. This only includes portfolios owned by a different Identity but custodied by this one. To fetch Portfolios owned by this Identity, use getPortfolios

Parameters

NameType
paginationOpts?PaginationOptions

Returns

Promise<ResultSet<NumberedPortfolio | DefaultPortfolio>>

Note

supports pagination

Defined in

api/entities/Identity/Portfolios.ts:76


getPortfolio

getPortfolio(): Promise<DefaultPortfolio>

Retrieve a Numbered Portfolio or the Default Portfolio if Portfolio ID is not passed

Returns

Promise<DefaultPortfolio>

Defined in

api/entities/Identity/Portfolios.ts:123

getPortfolio(args): Promise<NumberedPortfolio>

Parameters

NameType
argsObject
args.portfolioIdBigNumber

Returns

Promise<NumberedPortfolio>

Defined in

api/entities/Identity/Portfolios.ts:124


getPortfolios

getPortfolios(): Promise<[DefaultPortfolio, ...NumberedPortfolio[]]>

Retrieve all the Portfolios owned by this Identity

Returns

Promise<[DefaultPortfolio, ...NumberedPortfolio[]]>

Defined in

api/entities/Identity/Portfolios.ts:45