---
title: "POST /v2/api/contracts/{network}/lock"
method: POST
path: "/v2/api/contracts/{network}/lock"
---

# POST /v2/api/contracts/{network}/lock

`POST /v2/api/contracts/{network}/lock`

## Path parameters

- `network` integer, required

## Headers

- `captcha` string, required

## Request body

- LockContractOptions
  - `name` string
  - `expirationDuration` string, nullable
  - `maxNumberOfKeys` string, nullable
  - `keyPrice` string
  - `creator` string, nullable
  - `currencyContractAddress` string, nullable
  - `publicLockVersion` number, nullable

## Response `201`

Transaction hash of the lock creation transaction.

- object
  - `transactionHash` string

## Other responses

- `404` — The item you are making request for does not exist.
- `500` — Unable to fullfil request due to internal server error.

---

[API](https://skmtc.net/unlock-protocol/apis/unlock-locksmith.md) · [All operations](https://skmtc.net/unlock-protocol/apis/unlock-locksmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unlock-protocol/unlock-locksmith/versions/e003b998de45/schema)
