tokenActionBlock
Last updated
Last updated
This block is responsible in performing automatic actions on the token.
Block Property | Definition | Example Input | Status |
---|---|---|---|
tag | Unique name for the logic block. | tokenActionBlock | |
permissions | Which entity has rights to interact at this part of the workflow. | VVB | |
defaultActive | Shows whether this block is active at this time and whether it needs to be shown. | Checked or unchecked. | |
On errors | Called if the system error has occurs in the Block |
| |
Stop Propagation | End processing here, don't pass control to the next block. | Checked or unchecked. | |
Token | The token which is affected by the action | iREC token | |
Account Type | The type of the account under which the action is performed. If set to βDefaultβ the account of the currently logged in user is used (i.e. the owner of the document). If set to βCustomβ the account specified in the βaccountIdβ field is used. | Custom | |
Account Id (Field) | The value from this field is used as the ID of the account under which the action is performed when βAccount Typeβ is set to βCustomβ. | field0 | |
Action | Action to be performed on Token |
| |
Use Template | This needs to be enabled if we need to use token template, which is created already. | Enabled or Disabled | |
Token Template | Which will take created tokenId from input document by template name | token_template_0 |
Note:
Only fields of βHedera Accountβ type can be used for βaccountIdβ.
If the field specified in the βaccountIdβ is not found in the current document then the system will look for it in the parent documents.
βAssociateβ and βDissociateβ actions are not available when βAccount Typeβ is set to βCustomβ. For these operations βtokenConfirmationBlockβ should be used instead.
Action Name | Purpose |
---|---|
Associate | Links the account with the token. This operation is required to enable the account to perform transactions (including receiving) with the token. |
Dissociate | Removes the aforementioned βlinkβ. |
Freeze | Freezes the account |
Unfreeze | Unfreezes the account |
Grant KYC | This action is mandatory if the token is configured to require KYC. The owner of the token is required to βgrant KYCβ to enable transactions with the account. |
Revoke KYC | This revokes the accountβs permission to participate in transactions with the token. |