TransferRestrictionBase

Base class for managing Transfer Restrictions

Type parameters

T: TransferRestrictionTypearrow-up-right

Hierarchy

Index

Properties

Methods

Properties

Protected context

context: Context

Inherited from void

Defined in src/api/entities/Namespace.ts:11arrow-up-right


Optional exemptedScopeIds

exemptedScopeIds? : string[]

Defined in src/types/index.ts:1046arrow-up-right

array of Scope IDs that are exempted from the Restriction


Protected parent

parent: SecurityToken

Inherited from void

Defined in src/api/entities/Namespace.ts:9arrow-up-right


Protected Abstract type

type: T

Defined in src/api/entities/SecurityToken/TransferRestrictions/TransferRestrictionBase.ts:56arrow-up-right

Methods

addRestriction

addRestriction(args: AddRestrictionParams‹T›, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹number››

Defined in src/api/entities/SecurityToken/TransferRestrictions/TransferRestrictionBase.ts:123arrow-up-right

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 this method is of type ProcedureMethodarrow-up-right, which means you can call addRestriction.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹number››


get

get(): Promise‹GetReturnType‹T››

Defined in src/api/entities/SecurityToken/TransferRestrictions/TransferRestrictionBase.ts:158arrow-up-right

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

Returns: Promise‹GetReturnType‹T››


removeRestrictions

removeRestrictions(args: void, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹number››

Defined in src/api/entities/SecurityToken/TransferRestrictions/TransferRestrictionBase.ts:147arrow-up-right

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 this method is of type ProcedureMethodarrow-up-right, which means you can call removeRestrictions.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Name
Type

Returns: Promise‹TransactionQueue‹number››


setRestrictions

setRestrictions(args: SetRestrictionsParams‹T›, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹number››

Defined in src/api/entities/SecurityToken/TransferRestrictions/TransferRestrictionBase.ts:135arrow-up-right

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 this method is of type ProcedureMethodarrow-up-right, which means you can call setRestrictions.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹number››

Last updated

Was this helpful?