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": [
    {
      "name": "<string>",
      "description": "<string>",
      "internalType": "<string>",
      "type": "<string>",
      "components": [
        {}
      ],
      "value": "<string>"
    }
  ]
}'
{
  "message": "<string>",
  "data": {},
  "success": true,
  "status": 123
}

Authorizations

x-api-key
string
header
required

API key for authentication

Headers

x-sdk-version
string
default:1.0.0

SDK version for tracking and compatibility

Path Parameters

templateId
string
required

Contract template ID

Body

application/json
network
string
required

Target network

addressId
string
required

Address ID for deployment

clientShare
string
required

Client share for signing

constructorParameters
object[]

Constructor parameters

Response

201 - application/json

Contract deployment initiated successfully

message
string
required

Response message

success
boolean
required

Indicates successful response

status
integer
required

HTTP status code

data
object

Response data