Polymesh SDK API Reference
v6.0.0
v6.0.0
  • Introduction
  • Globals
  • Classes
    • Account
    • AuthorizationRequest
    • Authorizations
    • Checkpoint
    • CheckpointSchedule
    • Checkpoints
    • Claims
    • Compliance
    • Context
    • CorporateAction
    • CorporateActions
    • Count
    • CurrentAccount
    • CurrentIdentity
    • DefaultPortfolio
    • DefaultTrustedClaimIssuer
    • Distributions
    • DividendDistribution
    • Documents
    • Entity
    • Identity
    • IdentityAuthorizations
    • Instruction
    • Issuance
    • Middleware
    • NumberedPortfolio
    • Offerings
    • Percentage
    • Polymesh
    • PolymeshError
    • PolymeshTransaction
    • PolymeshTransactionBase
    • PolymeshTransactionBatch
    • Portfolio
    • Portfolios
    • Requirements
    • Schedules
    • SecurityToken
    • Settlements
    • Sto
    • TickerReservation
    • TokenHolders
    • TransactionQueue
    • TransferRestrictionBase
    • TransferRestrictions
    • TrustedClaimIssuers
    • Venue
  • Enums
    • AffirmationStatus
    • AuthorizationType
    • CalendarUnit
    • ClaimType
    • ConditionTarget
    • ConditionType
    • CorporateActionKind
    • CountryCode
    • ErrorCode
    • InstructionStatus
    • InstructionType
    • KnownTokenType
    • ProposalStage
    • RoleType
    • ScopeType
    • StoBalanceStatus
    • StoSaleStatus
    • StoTimingStatus
    • TargetTreatment
    • TickerReservationStatus
    • TokenIdentifierType
    • TransactionArgumentType
    • TransactionQueueStatus
    • TransactionStatus
    • TransferError
    • TransferRestrictionType
    • TransferStatus
    • TxGroup
    • VenueType
  • Interfaces
    • AccountData
    • ActiveTransferRestrictions
    • AddBatchTransactionOpts
    • AddClaimsParams
    • AddInstructionParams
    • AddInstructionsParams
    • AddInvestorUniquenessClaimParams
    • AddTransactionOpts
    • AddTransactionOptsBase
    • ArrayTransactionArgument
    • Balance
    • CalendarPeriod
    • CddProviderRole
    • CheckpointWithData
    • ClaimClassicTickerParams
    • ClaimData
    • ClaimScope
    • ClaimTarget
    • ComplexTransactionArgument
    • ConditionCompliance
    • ConnectParamsBase
    • ConstructorParams
    • ConsumeParams
    • ControllerTransferParams
    • CorporateActionDefaults
    • CorporateActionTargets
    • CountTransferRestriction
    • CountTransferRestrictionInput
    • CreateCheckpointScheduleParams
    • CreateSecurityTokenParams
    • CreateVenueParams
    • DeletePortfolioParams
    • DistributionParticipant
    • DistributionPayment
    • DistributionWithDetails
    • DividendDistributionDetails
    • DividendDistributionParams
    • EditClaimsParams
    • EventIdentifier
    • ExtrinsicData
    • Fees
    • HistoricSettlement
    • IdentityBalance
    • IdentityWithClaims
    • InstructionAffirmation
    • InvestInStoParams
    • Investment
    • InviteAccountParams
    • IssueTokensParams
    • KeyringPair
    • LeaveIdentityParams
    • Leg
    • LinkCaDocsParams
    • MiddlewareConfig
    • ModifyCorporateActionsAgentParams
    • ModifyInstructionAffirmationParams
    • ModifyPrimaryIssuanceAgentParams
    • ModifySignerPermissionsParams
    • ModifyTokenTrustedClaimIssuersAddSetParams
    • ModifyTokenTrustedClaimIssuersRemoveParams
    • MoveFundsParams
    • NetworkProperties
    • PaginationOptions
    • PayDividendsParams
    • PercentageTransferRestriction
    • PercentageTransferRestrictionInput
    • Permissions
    • PermissionsLike
    • PlainTransactionArgument
    • PortfolioBalance
    • PortfolioCustodianRole
    • PortfolioMovement
    • ProcedureAuthorizationStatus
    • ProcedureMethod
    • ProposalDetails
    • ProposalTimeFrames
    • ProposalVote
    • RedeemTokenParams
    • RegisterIdentityParams
    • RemoveCheckpointScheduleParams
    • RemoveCorporateActionParams
    • RemoveSecondaryKeysParams
    • RenamePortfolioParams
    • Requirement
    • RequirementCompliance
    • ReserveTickerParams
    • ResultSet
    • RevokeClaimsParams
    • ScheduleDetails
    • ScheduleWithDetails
    • Scope
    • SecondaryKey
    • SecurityTokenDetails
    • SetAssetRequirementsParams
    • SetCountTransferRestrictionsParams
    • SetCustodianParams
    • SetPercentageTransferRestrictionsParams
    • SetTokenDocumentsParams
    • SettlementLeg
    • SimpleEnumTransactionArgument
    • StoDetails
    • StoStatus
    • StoTier
    • StoWithDetails
    • TaxWithholding
    • TickerOwnerRole
    • TickerReservationDetails
    • Tier
    • ToggleFreezeSecondaryKeysParams
    • ToggleFreezeStoParams
    • ToggleFreezeTransfersParams
    • TogglePauseRequirementsParams
    • TokenCaaRole
    • TokenDocument
    • TokenIdentifier
    • TokenOwnerRole
    • TokenPiaRole
    • TransferBreakdown
    • TransferPolyxParams
    • TransferRestriction
    • TransferRestrictionInputBase
    • TransferRestrictionResult
    • TransferTickerOwnershipParams
    • TransferTokenOwnershipParams
    • TrustedClaimIssuer
    • UiKeyring
    • UniqueIdentifiers
    • VenueDetails
    • VenueOwnerRole
Powered by GitBook
On this page
  • Type parameters
  • Hierarchy
  • Index
  • Properties
  • Methods
  • Properties
  • Protected context
  • Optional exemptedScopeIds
  • Protected parent
  • Protected Abstract type
  • Methods
  • addRestriction
  • get
  • removeRestrictions
  • setRestrictions

Was this helpful?

  1. Classes

TransferRestrictionBase

PreviousTransactionQueueNextTransferRestrictions

Last updated 3 years ago

Was this helpful?

Base class for managing Transfer Restrictions

Type parameters

▪ T:

Hierarchy

  • Namespace‹›

    ↳ TransferRestrictionBase

    ↳

    ↳

Index

Properties

Methods

Properties

Protected context

Inherited from void

Optional exemptedScopeIds

• exemptedScopeIds? : string[]

array of Scope IDs that are exempted from the Restriction

Protected parent

Inherited from void

Protected Abstract type

• type: T

Methods

addRestriction

Add a Transfer Restriction of the corresponding type to this Security Token

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

note required role:

  • Security Token Owner

Parameters:

Name

Type

args

get

Retrieve all active Transfer Restrictions of the corresponding type

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

removeRestrictions

Removes all Transfer Restrictions of the corresponding type from this Security Token

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

note required role:

  • Security Token Owner

Parameters:

Name

Type

args

void

setRestrictions

Sets all Transfer Restrictions of the corresponding type on this Security Token

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

note required role:

  • Security Token Owner

Parameters:

Name

Type

args

• context:

Defined in

Defined in

• parent:

Defined in

Defined in

▸ addRestriction(args: ‹T›): Promise‹‹number››

Defined in

note this method is of type , which means you can call addRestriction.checkAuthorization on it to see whether the Current Account has the required permissions to run it

‹T›

Returns: Promise‹‹number››

▸ get(): Promise‹‹T››

Defined in

Returns: Promise‹‹T››

▸ removeRestrictions(args: void): Promise‹‹number››

Defined in

note this method is of type , which means you can call removeRestrictions.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Returns: Promise‹‹number››

▸ setRestrictions(args: ‹T›): Promise‹‹number››

Defined in

note this method is of type , which means you can call setRestrictions.checkAuthorization on it to see whether the Current Account has the required permissions to run it

‹T›

Returns: Promise‹‹number››

Context
src/api/entities/Namespace.ts:11
src/types/index.ts:877
SecurityToken
src/api/entities/Namespace.ts:9
src/api/entities/SecurityToken/TransferRestrictions/TransferRestrictionBase.ts:55
src/api/entities/SecurityToken/TransferRestrictions/TransferRestrictionBase.ts:125
ProcedureMethod
TransactionQueue
src/api/entities/SecurityToken/TransferRestrictions/TransferRestrictionBase.ts:166
TransactionQueue
src/api/entities/SecurityToken/TransferRestrictions/TransferRestrictionBase.ts:155
ProcedureMethod
TransactionQueue
src/api/entities/SecurityToken/TransferRestrictions/TransferRestrictionBase.ts:140
ProcedureMethod
TransactionQueue
TransferRestrictionType
SecurityToken
CountTransferRestriction
PercentageTransferRestriction
context
exemptedScopeIds
parent
type
addRestriction
get
removeRestrictions
setRestrictions
TransactionQueue
TransactionQueue
AddRestrictionParams
GetReturnType
GetReturnType
SetRestrictionsParams
AddRestrictionParams
SetRestrictionsParams