Skip to main content
Manage smart contract templates and deploy contracts from templates.

Methods

getContracts()

Get a paginated list of contract templates. Signature:
Example:

getContractById()

Get details for a specific contract template. Signature:
Example:

getContractConstructorById()

Get constructor information for a template. Signature:
Example:

getContractFunctionById()

Get function information for a template. Signature:
Example:

deployContract()

Deploy a contract from a template. Returns a workflow ID for async processing. Signature:
Parameters:
ParameterTypeRequiredDescription
templateIdstringYesTemplate ID
request.networkIdstringYesNetwork ID (from getNetworks())
request.addressIdstringYesAddress ID for deployment
request.clientSharestringYesClient share for signing
request.constructorParametersarrayNoArray of constructor parameter objects [{ name, type, value }, ...]
Example Request:
Example Response:
Response Fields:
FieldTypeRequiredDescription
data.workflowResult.workflowIdstringYesWorkflow ID for tracking contract deployment
data.workflowResult.operationIdstringYesOperation ID (e.g. deploymentId)
data.workflowResult.status'started' | 'already_running'YesWorkflow status
data.workflowResult.messagestringYesHuman-readable status message

createContract()

Create a new contract template. Signature:

deleteContract()

Delete a contract template. Signature: