Skip to main content
POST
/
api
/
v1
/
contract-templates
/
{templateId}
/
deploy
Deploy Contract
curl --request POST \
  --url https://sandbox.oumla.com/api/v1/contract-templates/{templateId}/deploy \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-sdk-version: <x-sdk-version>' \
  --data '
{
  "networkId": "<string>",
  "addressId": "<string>",
  "clientShare": "<string>",
  "constructorParameters": [
    {
      "name": "<string>",
      "type": "<string>",
      "description": "<string>",
      "internalType": "<string>",
      "components": [
        {
          "name": "<string>",
          "type": "<string>",
          "description": "<string>",
          "internalType": "<string>"
        }
      ],
      "value": {}
    }
  ]
}
'
{
  "workflowResult": {
    "workflowId": "<string>",
    "operationId": "<string>",
    "status": "started",
    "message": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication

Headers

x-sdk-version
string
default:1.0.0
required

SDK version header

Path Parameters

templateId
string
required

Contract template ID

Body

application/json
networkId
string
required
addressId
string
required
clientShare
string
required
constructorParameters
object[]

Response

deploy contract via Temporal workflow

workflowResult
object
required