tokenConfirmationBlock

This block enables the owner of the private key for the account to manually perform operations with the token, including those not available in the โ€˜tokenActionBlockโ€™.

1. Properties

Block PropertyDefinitionExample InputStatus

tag

Unique name for the logic block.

tokenConfirmationBlock

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

  • No action

  • Retry

  • Go to step

  • Go to tag

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

  • Associate

  • Dissociate

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:

  1. Only fields of โ€˜Hedera Accountโ€™ type can be used for โ€˜accountIdโ€™.

  2. 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.

  3. Users can skip the action by selecting โ€œI will Action manuallyโ€ option in the UI. This would require the user to perform the corresponding action off-Guardian platform (directly on Hedera chain).

2. Performing Token Associate using Guardian UI

The user need to input the private key for the account to enable Guardian to perform the action. The key is used once for the operation specified, it is not saved and not logged anywhere.

Note: Users can skip the action in UI if they prefer to perform it outside Guardian (directly with Hedera blockchain).

API Parameters

GET /policies/{policyId}/blocks/{uuid}

Path Parameters

NameTypeDescription

policyId*

String

Policy ID

uuid*

String

Block UUID

{
  "id": "484c57c2-5ceb-41ed-97b3-61c52fce473e",
  "blockType": "tokenConfirmationBlock",
  "action": "associate",
  "accountId": "0.0.1",
  "tokenName": "GHG Token",
  "tokenSymbol": "GHG",
  "tokenId": "0.0.3121118"
}

POST /policies/{policyId}/blocks/{uuid}

Path Parameters

NameTypeDescription

policyId*

String

Policy Id

uuid*

String

Block UUID

Request Body

NameTypeDescription

action*

String

action

hederaAccountKey*

String

Hedera Account Private Key

Last updated