# Smart Contracts

The hBTC protocol is organized into several smart contract domains covering governance, user interaction, trading, and accounting.&#x20;

Governance contracts manage permissions, configuration, and safety controls; user-facing contracts handle deposits, withdrawals, and the hBTC token; trading contracts interface with external protocols for strategy execution; and accounting contracts manage NAV updates and the reserve fund.&#x20;

All assets are held within a dedicated reserve contract, providing a single, auditable asset layer across the system.

<figure><img src="/files/74CVgHz49KloGawgrVpX" alt=""><figcaption></figcaption></figure>

hBTC smart contracts are open-source and verifiable on-chain.

<details>

<summary>Smart Contracts</summary>

HQ: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.hq-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.hq-v1?chain=mainnet)

State: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.state-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.state-hbtc-v1?chain=mainnet)

Blacklist: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.blacklist-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.blacklist-v1?chain=mainnet)

Vault: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.vault-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.vault-hbtc-v1?chain=mainnet)

Token: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.token-hbtc](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.token-hbtc?chain=mainnet)

Reserve: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.reserve-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.reserve-hbtc-v1?chain=mainnet)

Trading: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.trading-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.trading-hbtc-v1?chain=mainnet)

Zest Interface: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.zest-interface-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.zest-interface-hbtc-v1?chain=mainnet)

Hermetica Interface: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.hermetica-interface-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.hermetica-interface-hbtc-v1?chain=mainnet)

Controller: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.controller-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.controller-hbtc-v1?chain=mainnet)

Reserve Fund: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.reserve-fund-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.reserve-fund-hbtc-v1?chain=mainnet)

</details>

{% hint style="success" %}
View the hBTC smart contracts [on Github](https://github.com/hermetica-fi/hermetica-contracts).
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://docs.hermetica.fi/hbtc/how-it-works/smart-contracts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
