Request to create a new version of a smart contract template.
Identifier of the smart contract template this version belongs to.
1
Version number of the template.
1"1.0.0"
Solidity source code of the smart contract.
1"pragma solidity ^0.8.0; contract ERC20Token { string public name; string public symbol; uint256 public totalSupply; }"
Wrapper for API operation results containing success status, error information, and return value.
True if the operation completed successfully, false otherwise.
true
True if the operation failed, false otherwise.
false
Error information returned when the operation fails.
{
"code": "ValidationError",
"message": "The request parameters failed validation.",
"info": [
"The Name field is required.",
"The Id field must be greater than 0."
]
}The result value returned when the operation is successful.
{
"smartContractTemplateId": 1,
"version": "1.0.0",
"sourceCode": "pragma solidity ^0.8.0; contract ERC20Token { string public name; string public symbol; uint256 public totalSupply; }"
}