Libre Chain Docs
WebsiteAppWalletCreate Account
  • The Libre Platform
    • Libre is a Bitcoin-native, decentralized lending marketplace
    • Borrow
    • Lend
    • Run A Libre Node
    • Validators
    • The Smart Contract Platform
      • Building Smart Contracts on Libre
      • Libre Developer Tools
      • Libre Testnet
      • API Docs
  • DeFi on Libre DEX
    • DeFi
    • libreDEX
    • Ordinals
    • Building on Libre
      • How to add a trading pair
  • BitcoinFi on Libre
    • Glossary
  • The LIBRE Reward Coin
    • A reward system for validators and stakers
    • Supply
    • Mint Rush
    • Spindrop
      • How to Claim the LIBRE Spindrop
      • Eligibility Requirements for the LIBRE Spindrop
  • ACCOUNTS AND WALLETS
    • LIBRE Account Names
      • Cryptographic Keys
    • Creating Multiple Accounts
    • Bitcoin Libre Wallet
    • Anchor Wallet
      • Creating a Libre MainNet Account in Anchor
      • Creating a Libre Testnet Account in Anchor
      • Getting Testnet LIBRE Coins
    • Ledger Hardware Wallet
  • EARN
    • Staking
    • Mining
    • Referrals
    • Become a Validator
    • DAO Tax
    • Libre Lightning Provider
  • Governance
    • Voting Power
    • Validator Election
    • Libre DAO
    • Libre Governance Docs
      • Libre Blockchain Operating Agreement (LBOA)
      • Block Producer Agreement
      • Block Producer Minimum Requirements
    • Libre Mainnet Multisig Gov
      • Oct 2024
      • July 2023
      • June 2023
      • April 2023
      • March 2023
      • February 2023
      • December 2022
  • Technical Details
    • Libre Core Constants
    • Mint Rush Details
    • Staking Details
    • Verifying Code Updates
      • Deployed Smart Contract Versions
  • Cross-Chain Interoperability
    • Cross-Chain Overview
    • Bridge Comparison
    • Libre CrossLink Bridge
      • Technical Whitepaper
      • Bitcoin to Libre (Peg-In Process)
      • Libre to Bitcoin (Peg Out)
    • Bitcoin Lightning Network
    • USDT / Ethereum
    • Legacy pNetwork
    • Bitcoin Audit
Powered by GitBook
On this page
  • Full Turing-Complete WASM Smart Contracts
  • Interacting with Bitcoin on Libre
  • 1. Unwrapped BTC (Vault System)
  • 2. Wrapped BTC (Fast BTC)
  • Development Tools

Was this helpful?

Edit on GitLab
  1. The Libre Platform
  2. The Smart Contract Platform

Building Smart Contracts on Libre

Libre meets developers where they are at. There is no need to learn a new language as Libre supports building in almost all modern and popular programming languages including C++, Typescript, Rust, Go, and Python.

Full Turing-Complete WASM Smart Contracts

Libre's smart contract layer is built on WebAssembly (WASM), providing a full Turing-complete environment that enables developers to create complex, sophisticated applications. This is a significant advantage over other Bitcoin-focused platforms which typically offer limited or no smart contract capabilities.

With Libre's WASM implementation:

  • Execute any computable function or logic

  • Develop complex financial applications

  • Create custom token standards

  • Build decentralized applications with rich functionality

  • Implement advanced cryptographic operations

Interacting with Bitcoin on Libre

One of Libre's most powerful features is the ability to interact with Bitcoin in two distinct ways through smart contracts:

1. Unwrapped BTC (Vault System)

Smart contracts can interact with Bitcoin held in the CrossLink vault system without requiring the BTC to be wrapped as a token. This enables:

  • Direct collateralization of BTC for lending applications

  • Automated vault management

  • Liquidation protection mechanisms

  • Real-time BTC collateral monitoring

  • Withdrawal approval logic based on complex conditions

2. Wrapped BTC (Fast BTC)

Smart contracts can also interact with BTC that has been wrapped as a token on Libre, providing:

  • Faster transaction processing

  • Lower fees for frequent operations

  • Simplified integration with other DeFi applications

  • Token swaps and trading functionality

  • Advanced programmable escrow mechanisms

This dual approach gives developers unprecedented flexibility in how they incorporate Bitcoin into their applications, choosing the method that best suits their specific use case.

Development Tools

There are online several online IDEs you can use to build on Libre Chain - so you do not have to install any software locally to get started.

For example, any Antelope-based tools will work with Libre, for example:

PreviousThe Smart Contract PlatformNextLibre Developer Tools

Last updated 1 month ago

Was this helpful?

You can build smart contracts following this . Please start on Testnet - where the validators can help you with getting resources and access to the public API servers.

Rust Smart Contract Development Kit
Python Smart Contract Development Kit
Typescript Web IDE
AssemblyScript Smart Contract Development Kit
Go Smart Contract Development Kit
collection of examples