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 exemptedIds

exemptedIds? : string[]

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

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 herearrow-up-right and herearrow-up-right


Protected parent

parent: Asset

Inherited from void

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


Protected Abstract type

type: T

Defined in src/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts:59arrow-up-right

Methods

addRestriction

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

Defined in src/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts:126arrow-up-right

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 ProcedureMethodarrow-up-right, which means you can call addRestriction.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹BigNumber››


get

get(): Promise‹GetReturnType‹T››

Defined in src/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts:161arrow-up-right

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?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹BigNumber››

Defined in src/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts:150arrow-up-right

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 NoArgsProcedureMethodarrow-up-right, which means you can call removeRestrictions.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹BigNumber››


setRestrictions

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

Defined in src/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts:138arrow-up-right

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 ProcedureMethodarrow-up-right, which means you can call setRestrictions.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹BigNumber››

Last updated

Was this helpful?