/Legal/ProposeTemplate

Allows the client to propose a new smart contract template. The smart contract template is an XML document that conforms to the smart contract schema. You can design smart contracts using the LegalLab application.

JSON

Request
{
	"templateBase64": Required(Str(PTemplateBase64))
}
Response (if successful)
{
	"Template": Required(PTemplate)
}

XML

Request
<ProposeTemplate xmlns="https://waher.se/Schema/BrokerAgent.xsd"
                 templateBase64=(Required(Str(PTemplateBase64))) />
Response (if successful)
<TemplateResponse xmlns="https://waher.se/Schema/BrokerAgent.xsd">
	<[Required(PTemplate)]>
</TemplateResponse>

Input Parameters

Parameter Description
PTemplateBase64 BASE64-encoding of the binary content of the XML file to propose as a template.

Response Parameters

Parameter Description
PTemplate Smart contract template object generated by the server.

Javascript Library

Use the following asynchronous method in the Javascript Library, to call this resource. It computes the signatures according to the above specification.

var Response = await AgentAPI.Legal.ProposeTemplate(TemplateBase64);
Test


Request Payload:

   

Response Payload: