mintDocumentBlock
Last updated
Last updated
This block is responsible for adding configurations on calculating the amount of tokens to be minted.
Block Property | Definition | Example Input | Status |
---|---|---|---|
tag | Unique name for the logic block. | mintDocumentBlock | |
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. |
UI Property | Definition | Example Input |
---|---|---|
Token | The token which is affected by the action | GHG Token |
Account Type | 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 Account Fieldβ. |
|
Rule | Math expression for calculation of the amount of tokens to mint. | field7 * 100 |
Account Id (Field) | The value from this field is used as the ID of the account which is used for token transfer action when βAccount Typeβ is set to βCustomβ. | field5 |
Account Id (Value) | Allow users to set custom Hedera account id directly in policy configuration (for token transferring). This field is displayed only when Custom Account Value type. | 0.0.48640912 |
Memo | The value in this filed is used to customize the Memo field name. | "mint date is $ {document.verifiableCredential[0],credentialSubject[0].field5}" |
Use Template | This needs to be enabled if we need to use token template, which is created already. | Enabled/Disabled |
Token Template | Which will take created tokenId from input document by template name | token_template___0 |
Notes:
Only fields of βHedera Accountβ type can be used for βaccountIdβ.
If the field specified in the βaccountIdβ not found in the current document the system will look for it in the parent documents.