-
Notifications
You must be signed in to change notification settings - Fork 11
api.entities.Asset.TransferRestrictions.TransferRestrictionBase.TransferRestrictionBase
api/entities/Asset/TransferRestrictions/TransferRestrictionBase.TransferRestrictionBase
Base class for managing Transfer Restrictions
Name | Type |
---|---|
T |
extends TransferRestrictionType
|
-
Namespace
<Asset
>↳
TransferRestrictionBase
↳↳
Count
↳↳
Percentage
▸ addRestriction(args
, opts?
): Promise
<TransactionQueue
<BigNumber
, BigNumber
, unknown
[][]>>
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
Name | Type |
---|---|
args |
AddRestrictionParams <T > |
opts? |
ProcedureOpts |
Promise
<TransactionQueue
<BigNumber
, BigNumber
, unknown
[][]>>
api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts:128
▸ get(): Promise
<GetReturnType
<T
>>
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
Promise
<GetReturnType
<T
>>
api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts:163
▸ removeRestrictions(opts?
): Promise
<TransactionQueue
<BigNumber
, BigNumber
, unknown
[][]>>
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
Name | Type |
---|---|
opts? |
ProcedureOpts |
Promise
<TransactionQueue
<BigNumber
, BigNumber
, unknown
[][]>>
api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts:152
▸ setRestrictions(args
, opts?
): Promise
<TransactionQueue
<BigNumber
, BigNumber
, unknown
[][]>>
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
Name | Type |
---|---|
args |
SetRestrictionsParams <T > |
opts? |
ProcedureOpts |
Promise
<TransactionQueue
<BigNumber
, BigNumber
, unknown
[][]>>
api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts:140
Entities
- Account
- Asset
- Authorization Request
- Checkpoint
- Checkpoint Schedule
- Corporate Action
- Corporate Action Base
- Corporate Ballot
- Custom Permission Group
- Default Portfolio
- Default Trusted Claim Issuer
- Dividend Distribution
- Entity
- Identity
- Instruction
- Known Permission Group
- Metadata Entry
- Multi Sig Proposal
- Numbered Portfolio
- Offering
- Permission Group
- Portfolio
- Subsidies
- Subsidy
- Ticker Reservation
- Venue
- Authorizations
- Types