Contract Templates

Return contract template's constructor

Return contract template's constructor ABI

get/tokenization/templates/{contractTemplateId}/constructor

Request

Path parameters

contractTemplateIdstring required

The Contract Template identifier

Query parameters

withDocsboolean

true if you want to get the abi with its docs

Response

Contract template's constructor ABI was returned successfully

namestring

The name of the contract function as it appears in the ABI

stateMutability'pure' | 'view' | 'nonpayable' | 'payable'

The state mutability of the contract function as it appears in the ABI

type'constructor' | 'function' | 'error' | 'event' | 'receive' | 'fallback' required

The type of the function

descriptionstring

The documentation of this function (if has any)

Example response

{
  "name": "mint",
  "stateMutability": "pure",
  "type": "constructor",
  "inputs": [
    {
      "name": "_name",
      "description": "The name of the token",
      "internalType": "string",
      "type": "string"
    }
  ],
  "outputs": [
    {
      "name": "_name",
      "description": "The name of the token",
      "internalType": "string",
      "type": "string"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.