> For the complete documentation index, see [llms.txt](https://docs.libre.org/libre-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.libre.org/libre-docs/advanced-features/technical-details/deployed-smart-contract-versions.md).

# Smart Contract Versions

The code hash of every contract deployed on Libre mainnet, so anyone can check what is actually running.

Every account with a contract on it publishes the hash of the exact WebAssembly the chain is executing. You do not have to trust this page — you can ask the chain directly:

```bash
curl -s -X POST https://api.libre.cryptobloks.io/v1/chain/get_code \
  -d '{"account_name":"loan","code_as_wasm":true}' | jq -r .code_hash
```

Use `https://api.testnet.libre.cryptobloks.io` for testnet.

To confirm a contract matches its published source, build that source and compare the `sha256sum` of the resulting `.wasm` with the hash below.

## Mainnet, verified 2026-09-07

| Contract                                | Code hash                                                          | Last deployed | Source                                                                        |
| --------------------------------------- | ------------------------------------------------------------------ | ------------- | ----------------------------------------------------------------------------- |
| `loan`                                  | `9c47725ddc592009e7bb7f18b12062028b47e9f6d131ed0eb3109a57f17c5152` | 2026-09-03    | lending, vaults, liquidation                                                  |
| `oracle`                                | `de1169edf99847791a7c77c249b3489d51385bddae1fc293bd3a763f75a1ae98` | 2026-06-17    | BTC/USD price feed                                                            |
| `dex.libre`                             | `f46ee5dc401991a2fe96228544e1041ddf2414c9c072b19bb9e685963947dc09` | 2026-07-13    | orderbook DEX                                                                 |
| `v.libre`                               | `0152d0d9da662b081e90c2eaab42905d8493f7a22b5f74fc46b75fe3dc33e7f3` | 2026-08-21    | Bitcoin vault bridge                                                          |
| `x.libre`                               | `cc5774b27071104ce5a041e41c39c32de7aae094f44aa6db33aa4f81aba03b99` | 2026-08-21    | wrapped BTC bridge                                                            |
| `t.libre`                               | `0765d5e8e56739804fd8d6b0dc5fbe0c024b32d74923358e8a182d1d562b39aa` | 2026-07-30    | USDT bridge                                                                   |
| `mining.libre`                          | `45251ff488d4a67da8c0c2d16bcc352feeba456ec38c28760ac6995301fe4073` | —             | [mining.libre](https://gitlab.com/libre-chain/mining.libre)                   |
| `stake.libre`                           | `4c490735f6357929da822e4889fa8b2fdadc59895048720be3e6e82135bd920d` | —             | [staking-contract](https://gitlab.com/libre-chain/staking-contract)           |
| `mint.libre`                            | `b4877cd9d6c15f0adef8e56796d0db735dc47bbbb9eb7df28581e295b4e8545e` | —             | [staking-contract](https://gitlab.com/libre-chain/staking-contract)           |
| `reward.libre`                          | `0ca7ce0d25d703e4384fc531a2211e6af1683df05d328c31ebc237818aced171` | —             | [staking-contract](https://gitlab.com/libre-chain/staking-contract)           |
| `farm.libre`                            | `0b8f5753077fe95fd2cf528208d0c49b62c8c1aec8e41ba8615c03c31403150c` | —             | [staking-contract](https://gitlab.com/libre-chain/staking-contract)           |
| `dao.libre`                             | `b4a3a6874fef87539d7a738c5e1ca54f9617683306b46ae06823161be9306a50` | —             | [btc-libre-governance](https://gitlab.com/libre-chain/btc-libre-governance)   |
| `accts.libre`                           | `a97702e51b4ff23e6f1a25b52a11921fb33b52e6650e8268d10d5a41724d617c` | —             | [libre-referrals](https://gitlab.com/libre-chain/libre-referrals)             |
| `host.libre`                            | `8a12d547fbc6a40bcb99ea548664154c78fbb12e9d2d412bde683e60f13ccc66` | —             | [inscription-contract](https://gitlab.com/libre-chain/inscription-contract)   |
| `eosio`                                 | `5fc505eba82849b55ea6e3b3666298ec57371a6488cccc902d912012d08354e6` | 2026-04-04    | [libre-chain-contracts](https://gitlab.com/libre-chain/libre-chain-contracts) |
| `eosio.msig`                            | `faa87ac1cbf719544f32de5e652e72b0080bca2ddede44ad1a104e3c5768b225` | —             | [libre-chain-contracts](https://gitlab.com/libre-chain/libre-chain-contracts) |
| `eosio.libre`                           | `f4c89c6563984c9ddc5c7233ee06fb3f28d1d0723e593e517edd7b1887e90522` | —             | [libre-chain-contracts](https://gitlab.com/libre-chain/libre-chain-contracts) |
| `btc.libre` · `cbtc.libre` · `tp.libre` | `7fc7ec5501ecf307a5275d8f9196ab87abc41d00b84d03429d1ab2741e195abb` | 2025-02       | shared token contract                                                         |
| `usdt.libre`                            | `d51f96e08e7e8320d4ec7cedf4b2cf831a50be834a1db704ff5e5e435bf418e6` | 2026-04-16    | token contract                                                                |

{% hint style="info" %}
`system.libre` is listed in older versions of this page but **has no contract deployed**. The system contract runs on `eosio`.
{% endhint %}

## Why this page used to be wrong

Until 2026-09-07 this table carried hashes that were correct when written and never revisited. `stake.libre` and `dao.libre` had both been upgraded since, so the published hashes did not match the running code — on the one page whose entire purpose is verification. `mining.libre` was listed with no hash at all, and the current lending, DEX, oracle and bridge contracts were missing entirely.

The hashes above are now checked by CI (`scripts/check-constants.mjs`) against mainnet on every merge request, so the table cannot drift silently again. If a contract is upgraded, that check fails and this page must be updated with it.
