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>' \
  --data '
{
  "network": "<string>",
  "addressId": "<string>",
  "clientShare": "<string>",
  "constructorParameters": [
    {}
  ]
}
'
{
  "contractFunction": {
    "workflowId": "<string>",
    "status": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Obtain your API key from the dashboard.

Headers

x-sdk-version
string
default:1.0.0

SDK version header

Path Parameters

templateId
string
required

Contract template ID

Body

application/json

Request body for deploy contract

Deploy contract request object

network
string
required
addressId
string
required
clientShare
string
required
constructorParameters
object[]

Response

Contract deployment workflow started

contractFunction
object