Settlements
Last updated
Was this helpful?
Last updated
Was this helpful?
Handles all Asset Settlements related functionality Handles all Settlement related functionality
Namespace‹›
↳ Settlements
Protected
context• context: Context
Inherited from void
Protected
parentInherited from void
Create an Instruction to exchange Assets
Parameters:
args
opts?
Affirm an Instruction (authorize)
Parameters:
args
opts?
Check whether it is possible to create a settlement Instruction to transfer a certain amount of this Asset's tokens between two Portfolios.
note
this takes locked tokens into account. For example, if portfolio A has 1000 tokens and this function is called to check if 700 of them can be transferred to portfolio B (assuming everything else checks out) the result will be success. If an instruction is created and authorized to transfer those 700 tokens, they would become locked. From that point, further calls to this function would yield failed results because of the funds being locked, even though they haven't been transferred yet
Parameters:
â–ª args: object
amount
BigNumber
amount of tokens to transfer
from?
sender Portfolio (optional, defaults to the signing Identity's Default Portfolio)
to
receiver Portfolio
Check whether it is possible to create a settlement instruction to transfer a certain amount of this asset between two Portfolios. Returns a breakdown of the transaction containing general errors (such as insufficient balance or invalid receiver), any broken transfer restrictions, and any compliance failures
note
this takes locked tokens into account. For example, if portfolio A has 1000 tokens and this function is called to check if 700 of them can be transferred to portfolio B (assuming everything else checks out) the result will be success. If an instruction is created and authorized to transfer those 700 tokens, they would become locked. From that point, further calls to this function would yield failed results because of the funds being locked, even though they haven't been transferred yet
Parameters:
â–ª args: object
amount
BigNumber
amount of tokens to transfer
from?
sender Portfolio (optional, defaults to the signing Identity's Default Portfolio)
to
receiver Portfolio
Create a Venue under the ownership of the signing Identity
Parameters:
args
opts?
Retrieve an Instruction by its ID
Parameters:
â–ª args: object
id
BigNumber
Retrieve a Venue by its ID
Parameters:
â–ª args: object
id
BigNumber
Defined in
Defined in
• parent:
Defined in
â–¸ addInstruction(args
: , opts?
: ): Promise‹‹[], ››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹[], ››
â–¸ affirmInstruction(args
: , opts?
: ): Promise‹‹››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››
â–¸ canSettle(args
: object): Promise‹›
Defined in
deprecated
in favor of
Returns: Promise‹›
â–¸ canTransfer(args
: object): Promise‹›
Defined in
Returns: Promise‹›
â–¸ createVenue(args
: , opts?
: ): Promise‹‹››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››
â–¸ getInstruction(args
: object): Promise‹›
Defined in
Returns: Promise‹›
â–¸ getVenue(args
: object): Promise‹›
Defined in
Returns: Promise‹›