> For the complete documentation index, see [llms.txt](https://docs.hermetica.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hermetica.fi/hbtc/how-it-works/smart-contracts.md).

# 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 %}
