---
title: "Write StackerDB chunk"
method: POST
path: "/v2/stackerdb/{principal}/{contract_name}/chunks"
tags: ["StackerDB"]
---

# Write StackerDB chunk

`POST /v2/stackerdb/{principal}/{contract_name}/chunks`

Write a chunk of data to a StackerDB instance.

The request body should contain a JSON object with the chunk data including
slot_id, slot_version, signature, and hex-encoded data.

The response indicates whether the chunk was accepted, and if not, provides
detailed error information. Note that failed writes return HTTP 200 with
accepted: false, not HTTP error codes.

## Parameters

- `./components/parameters/standard-principal.yaml` — unresolved $ref
- `./components/parameters/contract-name.yaml` — unresolved $ref

## Request body

- StackerDbChunkData — unresolved $ref

## Response `200`

Chunk submission result (both success and failure cases)

- StackerDbChunkAckData — unresolved $ref

## Other responses

- `400` — Bad request
- `404` — Not found
- `500` — Internal Server Error

## Changes

- **2025-07-09** `04a9a0b50aa3` — 1 info
  - endpoint added
- **2025-07-08** `488dd3b80020` — 1 breaking
  - api path removed without deprecation
- **2025-07-08** `170414634c90` — 1 info
  - endpoint added
- **2025-06-26** `2fc5956efe3d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/stacks-network/apis/stacks-3-0-rpc-api/changes/v2/stackerdb/:principal/:contract_name/chunks/post.md)

---

[API](https://skmtc.dev/stacks-network/apis/stacks-3-0-rpc-api.md) · [All operations](https://skmtc.dev/stacks-network/apis/stacks-3-0-rpc-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stacks-network/stacks-3-0-rpc-api/revisions/bfe6e0b30f62/schema)
