Create Token Block

Properties

Block PropertyDefinitionExample InputStatus

type

A type of the block which creates a form from the schema, and sends the document to the server.

Create Token Block (Can't be changed).

tag

Unique name for the logic block.

add_new_installer_request.

permissions

Which entity has rights to interact at this part of the workflow.

Standard Registry.

defaultActive

Shows whether this block is active at this time and whether it needs to be shown.

Checked or unchecked.

stop propagation

End processing here, don't pass control to the next block.

Checked or Unchecked.

Token Template

We can set template by which we want to create token

token_template___0

UI Properties

UI PropertyDefinition

Type

Style of the render of the form. It can be either a Page (the form is rendered as a page) or Dialogue (displays a button, which opens a dialogue with the form when clicked).

Title

Provides the Page or Dialogue box a title.

Description

Provides the Page or Dialogue box a description.

Button Content

Text to fill inside a button. Needs the Dialogue box to be selected from the "Type."

Dialogue Text

Provides a tile inside the Dialogue box. Needs the dialogue box to be selected from the "Type."

Dialogue Description

Provides a description inside the Dialogue box. Needs the dialogue box to be selected from the "Type."

API Parameters

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

Path Parameters

NameTypeDescription

policyId*

String

Policy ID

uuid*

String

Block UUID

{
  "id": "a411e417-bff7-49dc-bbf0-a4e5b7501b73",
  "blockType": "createTokenBlock",
  "uiMetaData": {
    "type": "page",
    "title": "Create Token",
    "description": "Please enter token info"
  },
  "active": true,
  "data": {
    "templateTokenTag": "token_template_0",
    "tokenType": "fungible",
    "decimals": 3,
    "enableAdmin": true,
    "changeSupply": true
  }
}

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

Path Parameters

NameTypeDescription

policyId*

String

Policy ID

uuid*

String

Block UUID

Request Body

NameTypeDescription

tokenName*

String

Token Name

tokenSymbol*

String

Token Symbol

tokenType*

String

Fungible or Non Fungible

decimals*

String

Token decimals

enableAdmin*

Boolean

Enable Admin Flag

enableSupply*

Boolean

Enable Supply Flag

enableFreeze*

Boolean

Enable Freeze Flag

enableKYC*

Boolean

Enable KYC Flag

enableWipe*

Boolean

Enable Wipe Flag

Last updated