Developers

Technical resources for developers building on Libre Chain and integrating with the lending platform.

Overview

Libre Chain provides a robust platform for building decentralized applications, with particular focus on Bitcoin-native financial services. This section covers smart contract development, API integration, and technical resources.

Quick Start

Network Information

  • Chain ID: 1

  • RPC Endpoint: https://lb.libre.org

  • Explorer: https://librebloks.io

  • Testnet RPC: https://testnet.libre.org

Core Contracts

  • Lending Pools: loan

  • DEX: dex.libre

  • USDT Token: usdt.libre

  • Fast BTC: btc.libre

Smart Contract Development

Development Environment

Libre Chain uses the Antelope (formerly EOSIO) smart contract platform:

  • Language: C++

  • Framework: Antelope CDT

  • Testing: Local testnet with cleos

  • Deployment: Multi-sig governance process

Getting Started

Example: Simple Lending Integration

API Integration

REST API Endpoints

Loan Information

Vault Information

Pool Statistics

Token Balances

Real-world Integration Example

Based on the tools.libre.org loan tracker implementation and actual loan contract source code. For complete implementation details, see the libre-tools.com source code:

Direct Chain Integration

Libre Chain does not currently have JavaScript or Python SDKs. Integration is done directly using Antelope/EOSIO APIs and libraries.

JavaScript Integration Example

Bitcoin Integration

Libre Chain provides native Bitcoin integration through the Fast BTC system:

Bitcoin Collateral Integration

Liquidation Monitoring

Testing & Development

Local Testnet Setup

Test Data

Security Considerations

Smart Contract Security

  • Reentrancy protection: Use proper state management

  • Authorization checks: Validate all user permissions

  • Overflow protection: Use safe math libraries

  • Input validation: Sanitize all external inputs

API Security

  • Rate limiting: Implement request throttling

  • Authentication: Use signed transactions for state changes

  • Input validation: Validate all API parameters

  • HTTPS only: Always use encrypted connections

Resources

Documentation

Tools

  • Block Explorer: librebloks.io

  • Libre Blockchain Tools: tools.libre.org

    • Loan Overview: Monitor USDT loans and BTC collateral

    • Contract Explorer: Browse smart contract data

    • Account History Viewer: Download account history to CSV

    • Bitcoin Bridge Tracker: Track cross-chain transactions

    • Vault Inspector: Check vault information and balances

    • Multisig Proposal Viewer: Browse multisig proposals

  • Tools Source Code: GitHub

Support

Legacy Developer Resources

For comprehensive technical documentation, see:

Contributing

Libre Chain is open source. Contributions welcome:

  1. Fork the repository

  2. Create feature branch

  3. Submit pull request

  4. Follow coding standards

  5. Include tests for new features

The platform is designed to be developer-friendly while maintaining the security and transparency that Bitcoin users expect.

Last updated

Was this helpful?