---
title: "DID returns a DID Document with a sequence number."
method: GET
path: "/panacea/did/v2/dids/{did_base64}"
tags: ["Query"]
---

# DID returns a DID Document with a sequence number.

`GET /panacea/did/v2/dids/{did_base64}`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `did_base64` string, required

## Response `200`

A successful response.

- object: QueryDIDResponse is the response type for the Query/DIDDocumentWithSeq RPC method.
  - `did_document_with_seq` object: DIDDocumentWithSeq defines a message for DID Document with a sequence number for preventing replay attacks.
    - `document` object: NOTE: All 'json_name' and 'gogoproto.customtype' tags are for panacea-core to unmarshal the v1.3 genesis which is in the W3C JSON-LD format. On the other hand, the panacea-core and cosmos-sdk don't use those tags to marshal result to JSON (via grpc-gateway).
      - `contexts` object: Strings defines a JSON-LD string array format which is marshalled to a single string if the array length is 1.
        - `values` string[]
      - `id` string
      - `controller` object: Strings defines a JSON-LD string array format which is marshalled to a single string if the array length is 1.
        - `values` string[]
      - `verification_methods` object[]
        - `id` string
        - `type` string
        - `controller` string
        - `public_key_base58` string
      - `authentications` object[]
        - `verification_method_id` string
        - `verification_method` object
          - `id` string
          - `type` string
          - `controller` string
          - `public_key_base58` string
      - `assertion_methods` object[]
        - `verification_method_id` string
        - `verification_method` object
          - `id` string
          - `type` string
          - `controller` string
          - `public_key_base58` string
      - `key_agreements` object[]
        - `verification_method_id` string
        - `verification_method` object
          - `id` string
          - `type` string
          - `controller` string
          - `public_key_base58` string
      - `capability_invocations` object[]
        - `verification_method_id` string
        - `verification_method` object
          - `id` string
          - `type` string
          - `controller` string
          - `public_key_base58` string
      - `capability_delegations` object[]
        - `verification_method_id` string
        - `verification_method` object
          - `id` string
          - `type` string
          - `controller` string
          - `public_key_base58` string
      - `services` object[]
        - `id` string
        - `type` string
        - `service_endpoint` string
    - `sequence` string, uint64

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-08-06** `7183739e3090`: 2 info
  - api tag `Query` added
  - api tag `QueryService` removed
- **2026-07-17** `f9f1122b1e02`: 2 info
  - api tag `QueryService` added
  - api tag `Query` removed
- **2026-07-01** `4a103dfd4675`: 2 info
  - api tag `Query` added
  - api tag `QueryService` removed
- **2024-02-28** `f9f1122b1e02`: 2 info
  - api tag `QueryService` added
  - api tag `Query` removed
- **2021-07-13** `940523c09b13`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medibloc/apis/cosmoshub-grpc-gateway-docs/changes/panacea/did/v2/dids/:did_base64/get.md)

---

[API](https://skmtc.dev/medibloc/apis/cosmoshub-grpc-gateway-docs.md) - [All operations](https://skmtc.dev/medibloc/apis/cosmoshub-grpc-gateway-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/medibloc/apis/cosmoshub-grpc-gateway-docs/revisions/7183739e3090?raw)
