---
title: "Encode state overrides"
method: POST
path: "/v1/account/{accountSlug}/project/{projectSlug}/contracts/encode-states"
tags: ["Contracts"]
---

# Encode state overrides

`POST /v1/account/{accountSlug}/project/{projectSlug}/contracts/encode-states`

Encode state overrides of the smart contract.

## Path parameters

- `accountSlug` string, required
- `projectSlug` string, required

## Request body

- EncodeStatesPayload
  - `networkID` string, required — ID of the network.
  - `stateOverrides` object, required — Overrides for specific state objects.
  - `blockNumber` string — Number of the block to be used for the encoding states.

## Response `200`

A successful response.

- EncodeStatesPostResponse — An object with details about state overrides.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — The resource was not found.
- `429` — The request was rate limited. See the [rate limits](#section/Introduction/Rate-limits) section for the current limits and how request counts expire.
- `500` — Server error.

## Changes

- **2026-08-28** `e512753e74ce` — 6 warning
  - added the new `rid:simulation_draft` enum value to the `error/data/rid` response property for the response status `400`
  - added the new `rid:simulation_draft` enum value to the `error/data/rid` response property for the response status `401`
  - added the new `rid:simulation_draft` enum value to the `error/data/rid` response property for the response status `403`
  - added the new `rid:simulation_draft` enum value to the `error/data/rid` response property for the response status `404`
  - …2 more
- **2026-07-31** `59b67cf882bc` — 1 info
  - added the non-success response with the status `429`

[Change history](https://skmtc.dev/tenderly/apis/tenderly-api/changes/v1/account/:accountSlug/project/:projectSlug/contracts/encode-states/post.md)

---

[API](https://skmtc.dev/tenderly/apis/tenderly-api.md) · [All operations](https://skmtc.dev/tenderly/apis/tenderly-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tenderly/tenderly-api/revisions/e512753e74ce/schema)
