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

# POST /cmd/executeSC

`POST /cmd/executeSC`

Execute a smart contract bytecode.

## Request body

- object
  - `nickname` string, required — Account nickname used to sign the operation.
  - `bytecode` string, required — Base64 encoded smart contract bytecode.
  - `maxCoins` string — Amount in integer string.
  - `fee` string — Amount in integer string.
  - `description` string — Description of the operation
  - `maxGas` string — Amount in integer string.
  - `datastore` DataStoreEntry[] — Contract datastore
    - Base64Bytes[] — A tuple which contains (key, value) in b64 string

## Response `200`

OK.

- object
  - `operationId` string — Operation id.

## 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)
