---
title: "Get information about the current difficulty."
method: GET
path: "/difficulty"
tags: ["DID"]
---

# Get information about the current difficulty.

`GET /difficulty`

Get information needed to calculate a retention proof for DID PUT operations.

## Response `200`

The current hash and difficulty to calculate a retention proof against.

- object
  - `hash` string, required
  - `difficulty` integer, required

## Other responses

- `404` — Retention proofs not supported by this gateway.

## Changes

- **2023-11-20** `4b01176296d1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/decentralized-identity/apis/did-dht-gateway-api/changes/difficulty/get.md)

---

[API](https://skmtc.dev/decentralized-identity/apis/did-dht-gateway-api.md) · [All operations](https://skmtc.dev/decentralized-identity/apis/did-dht-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decentralized-identity/did-dht-gateway-api/revisions/2df84fe481c8/schema)
