---
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.

## Changes

- **2025-05-13** `0eb45d9f9051` — 1 info
  - endpoint added
- **2023-04-11** `ed844438644d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/massalabs/apis/massastation/changes/cmd/executeSC/post.md)

---

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