---
title: "POST /cmd/deploySC"
method: POST
path: "/cmd/deploySC"
---

# POST /cmd/deploySC

`POST /cmd/deploySC`

Deploys the given smart contract to the blockchain network.

## Request body

- object
  - `nickname` string, required — Account nickname used to sign the operation.
  - `smartContract` string, required — Base64 encoded smart contract bytecode.
  - `maxCoins` string — Set the number of coins that will be sent along the deployment call.
  - `coins` string — Set the number of coins that will be sent along the deployment call.
  - `fee` string — Set the fee amount (in nanoMassa) that will be given to the block creator.
  - `parameters` string — Base64 encoded parameters that will be sent along the smart contract.
  - `description` string — Description of the operation
  - `maxGas` string — Amount in integer string.

## Response `200`

OK.

- object
  - `operationId` string — Operation id.
  - `firstEvent` Events — Events object (V0)
    - `data` string — Event data.
    - `address` string — SC address that emitted the event.

## Other responses

- `400` — Bad request.
- `422` — Unprocessable Entity - syntax is correct, but the server was unable to process the contained instructions.
- `500` — Internal Server Error - The server has encountered a situation it does not know how to handle.

---

[API](https://skmtc.net/massalabs/apis/massastation.md) · [All operations](https://skmtc.net/massalabs/apis/massastation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/massalabs/massastation/versions/26b1a89baa49/schema)
