Skip to content

Developer Guide ​

Welcome to the LI Network development hub. This guide is designed for developers who want to understand the core architecture of LICOIN or build tools and services on top of the network.

Core Architecture ​

LICOIN is a Proof-of-Work Layer-1 blockchain with the following technical specifications:

  • Block Time: 15 seconds
  • Total Supply: 100,000,000 LI
  • Algorithm: LiHashX (CPU-optimized, Memory-hard)
  • Network Protocol: Custom P2P with encrypted handshake
  • Address Format: Bech32-like with LI prefix

Building the Code ​

To contribute to the core codebase, you'll need a C++17 compliant compiler, CMake, and OpenSSL.

bash
# Clone the repository
git clone https://github.com/LI-COIN/Li-Network.git
cd Li-Network

# Build for production
mkdir build && cd build
cmake ..
make -j$(nproc)

JSON-RPC API ​

LICOIN provides a comprehensive JSON-RPC interface for interacting with the node.

Example: Get Block Count ​

bash
curl --user licoinrpc:yourpassword --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/

Key API Methods ​

  • getmininginfo: Current mining stats (hashrate, difficulty).
  • getbalance: Current wallet balance.
  • getnewaddress: Generate a new receiving address.
  • sendtoaddress: Send LI to a specific address.
  • getblock: Retrieve block details by hash or height.

Building on LI Ecosystem ​

If you're building a dApp, explorer, or analytical tool, we recommend using our official libraries (available in C++, with Python and JS wrappers coming soon).

The core licoin_core library provides primitives for:

  • Transaction serialization and signing.
  • Address generation and validation.
  • LiHashX hash calculation.
  • Block header verification.

Released under the MIT License.