Percentage

Handles all Percentage Transfer Restriction related functionality

Hierarchy

TransferRestrictionBasePercentagearrow-up-right

Percentage

Index

Properties

Methods

Properties

Protected context

context: Context

Inherited from void

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


get

get: function

Overrides TransferRestrictionBase.get

Defined in src/api/entities/SecurityToken/TransferRestrictions/Percentage.ts:64arrow-up-right

Retrieve all active Percentage Transfer Restrictions

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

Type declaration:

▸ (): Promise‹ActiveTransferRestrictionsarrow-up-rightPercentageTransferRestrictionarrow-up-right››


Protected parent

parent: SecurityToken

Inherited from void

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


Protected type

type: Percentagearrow-up-right = TransferRestrictionType.Percentage as const

Overrides TransferRestrictionBase.type

Defined in src/api/entities/SecurityToken/TransferRestrictions/Percentage.ts:19arrow-up-right

Methods

addRestriction

addRestriction(args: Omit‹AddPercentageTransferRestrictionParams, "type"›, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹number››

Overrides TransferRestrictionBase.addRestriction

Defined in src/api/entities/SecurityToken/TransferRestrictions/Percentage.ts:29arrow-up-right

Add a Percentage Transfer Restriction 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››


removeRestrictions

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

Overrides TransferRestrictionBase.removeRestrictions

Defined in src/api/entities/SecurityToken/TransferRestrictions/Percentage.ts:53arrow-up-right

Removes all Percentage Transfer Restrictions 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: Omit‹SetPercentageTransferRestrictionsParamsarrow-up-right, "type"›, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹number››

Overrides TransferRestrictionBase.setRestrictions

Defined in src/api/entities/SecurityToken/TransferRestrictions/Percentage.ts:41arrow-up-right

Sets all Percentage Transfer Restrictions 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?