> For the complete documentation index, see [llms.txt](https://docs.teranode.group/tng-identity-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.teranode.group/tng-identity-documentation/did/bsv-did-universal-resolver/how-it-works.md).

# How It Works

## How It Works

1. You request the resolution of a DID via the Universal Resolver API.
2. The service:
   * Validates the DID.
   * Loads transaction history from the **BSV blockchain** via the WhatsOnChain API.
   * Reconstructs the current DID Document.
   * **Caches** the DID Document internally
3. The service returns a **standards-compliant DID Resolution Result**, including metadata and any applicable errors.

***

## Limitations

* Currently supports only the BSV method (did:bsv).
* Response times may vary depending on blockchain lookup times by WhatsOnChain and length of the transaction chain.

***

## Support and Resources

* **Source Code**: [Resolver Driver Repository](https://github.com/your-repo)
* **WhatsOnChain API**: [WhatsOnChain Docs](https://docs.whatsonchain.com/)
* **W3C DID Specification**: [DID Core Specification](https://www.w3.org/TR/did-1.0/)
* **W3C DID Resolution Specification**: [DID Resolution Specification](https://www.w3.org/TR/did-resolution/)
* **Issues**: Report bugs and request features via GitHub Issues


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.teranode.group/tng-identity-documentation/did/bsv-did-universal-resolver/how-it-works.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
