Polymesh SDK API Reference
beta
beta
  • Globals
  • Classes
    • Account
    • AccountManagement
    • Asset
    • AssetHolders
    • AssetPermissions
    • Assets
    • AuthorizationRequest
    • Authorizations
    • Checkpoint
    • CheckpointSchedule
    • Checkpoints
    • Claims
    • Compliance
    • CorporateAction
    • CorporateActionBase
    • CorporateActions
    • Count
    • CustomPermissionGroup
    • DefaultPortfolio
    • DefaultTrustedClaimIssuer
    • Distributions
    • DividendDistribution
    • Documents
    • Entity
    • Identities
    • Identity
    • IdentityAuthorizations
    • Instruction
    • Issuance
    • KnownPermissionGroup
    • Network
    • NumberedPortfolio
    • Offering
    • Offerings
    • Percentage
    • PermissionGroup
    • Permissions
    • Polymesh
    • PolymeshError
    • PolymeshTransaction
    • PolymeshTransactionBase
    • PolymeshTransactionBatch
    • Portfolio
    • Portfolios
    • Requirements
    • Schedules
    • Settlements
    • Subsidy
    • TickerReservation
    • TransactionQueue
    • TransferRestrictionBase
    • TransferRestrictions
    • TrustedClaimIssuers
    • Venue
  • Enums
  • Interfaces
Powered by GitBook
On this page
  • Type parameters
  • Hierarchy
  • Index
  • Properties
  • Methods
  • Properties
  • Protected context
  • Optional exemptedIds
  • Protected parent
  • Protected Abstract type
  • Methods
  • addRestriction
  • get
  • removeRestrictions
  • setRestrictions

Was this helpful?

  1. Classes

TransferRestrictionBase

Base class for managing Transfer Restrictions

Type parameters

▪ T: TransferRestrictionType

Hierarchy

  • Namespace‹Asset›

    ↳ TransferRestrictionBase

    ↳ CountTransferRestriction

    ↳ PercentageTransferRestriction

Index

Properties

  • context

  • exemptedIds

  • parent

  • type

Methods

  • addRestriction

  • get

  • removeRestrictions

  • setRestrictions

Properties

Protected context

• context: Context

Inherited from void

Defined in src/api/entities/Namespace.ts:11


Optional exemptedIds

• exemptedIds? : string[]

Defined in src/types/index.ts:1234

array of Scope/Identity IDs that are exempted from the Restriction

note if the Asset requires investor uniqueness, Scope IDs are used. Otherwise, we use Identity IDs. More on Scope IDs and investor uniqueness here and here


Protected parent

• parent: Asset

Inherited from void

Defined in src/api/entities/Namespace.ts:9


Protected Abstract type

• type: T

Defined in src/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts:59

Methods

addRestriction

▸ addRestriction(args: AddRestrictionParams‹T›, opts?: ProcedureOpts): Promise‹TransactionQueue‹BigNumber››

Defined in src/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts:126

Add a Transfer Restriction of the corresponding type to this Asset

note the result is the total amount of restrictions after the procedure has run

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

Parameters:

Name
Type

args

opts?

Returns: Promise‹TransactionQueue‹BigNumber››


get

▸ get(): Promise‹GetReturnType‹T››

Defined in src/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts:161

Retrieve all active Transfer Restrictions of the corresponding type

note there is a maximum number of restrictions allowed across all types. The availableSlots property of the result represents how many more restrictions can be added before reaching that limit

Returns: Promise‹GetReturnType‹T››


removeRestrictions

▸ removeRestrictions(opts?: ProcedureOpts): Promise‹TransactionQueue‹BigNumber››

Defined in src/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts:150

Removes all Transfer Restrictions of the corresponding type from this Asset

note the result is the total amount of restrictions after the procedure has run

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

Parameters:

Name
Type

opts?

Returns: Promise‹TransactionQueue‹BigNumber››


setRestrictions

▸ setRestrictions(args: SetRestrictionsParams‹T›, opts?: ProcedureOpts): Promise‹TransactionQueue‹BigNumber››

Defined in src/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts:138

Sets all Transfer Restrictions of the corresponding type on this Asset

note the result is the total amount of restrictions after the procedure has run

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

Parameters:

Name
Type

args

opts?

Returns: Promise‹TransactionQueue‹BigNumber››

PreviousTransactionQueueNextTransferRestrictions

Last updated 2 years ago

Was this helpful?

‹T›

‹T›

AddRestrictionParams
ProcedureOpts
ProcedureOpts
SetRestrictionsParams
ProcedureOpts