Overview
Allows the client to create a new smart contract, based on an existing (and approved) contract template. The request must be signed using one of the keys created by the client.HTTP request
POST /Agent/Legal/CreateContract
Authentication
Requires a valid JWT bearer token.Request (JSON)
Input parameters
| Parameter | Description |
|---|---|
| PTemplateId | Contract ID of approved template to use to create the new smart contract. |
| PVisibility | Visibility of the new smart contract. Possible values are CreatorAndParts, DomainAndParts, Public and PublicSearchable. |
| PRole | Role of a predefined part to the contract. |
| PLegalId | Legal ID of a predefined part to the contract. |
| PLegalId | Values of properties that will be engraved into the Legal Identity. |
| PPropertyName | Names of properties that will be engraved into the Legal Identity. |
| PPropertyValue | Values of properties that will be engraved into the Legal Identity. |
Response (JSON)
Response parameters
| Parameter | Description |
|---|---|
| PContract | Smart contract object generated by the server. |