Methods
getContracts()
Get a paginated list of contract templates.
Signature:
getContractById()
Get details for a specific contract template.
Signature:
getContractConstructorById()
Get constructor information for a template.
Signature:
getContractFunctionById()
Get function information for a template.
Signature:
deployContract()
Deploy a contract from a template. Returns a workflow ID for async processing.
Signature:
| Parameter | Type | Required | Description |
|---|---|---|---|
templateId | string | Yes | Template ID |
request.networkId | string | Yes | Network ID (from getNetworks()) |
request.addressId | string | Yes | Address ID for deployment |
request.clientShare | string | Yes | Client share for signing |
request.constructorParameters | array | No | Array of constructor parameter objects [{ name, type, value }, ...] |
| Field | Type | Required | Description |
|---|---|---|---|
data.workflowResult.workflowId | string | Yes | Workflow ID for tracking contract deployment |
data.workflowResult.operationId | string | Yes | Operation ID (e.g. deploymentId) |
data.workflowResult.status | 'started' | 'already_running' | Yes | Workflow status |
data.workflowResult.message | string | Yes | Human-readable status message |