Developers

Building a wallet, an explorer or a payment app? Start with the same indexer, libraries and test cases the Lotus project uses. If a library is missing a feature, follow its source link below to contribute the change where other builders can use it.

Lotus V2 specifications

V2 is in development. These drafts describe proposed behavior at source revision 00505898. A rule in a draft can still be ahead of the software.

Try the address test vectors or download the conformance vector directory.

Run a V2 example

Check how Lotus encodes a transaction before connecting to a node. This Python example runs six encoding tests locally. It needs Git and Python 3.

git clone https://github.com/givelotus/lotus.git
cd lotus
git checkout --detach 00505898840826b09be2ecbb4c176f37b4e040c9
PYTHONPATH=tools/lotus-v2-reference python3 -m unittest discover \
  -s tools/lotus-v2-reference/tests -p test_encoding.py

Indexer, SDKs and compiler

Use these source checkouts during development. Package registry installs and release binaries will appear here as each distribution is verified.

Chronik

The indexer runs inside the node. Wallets and explorers can read the same transaction and block data. Use the daemon source manifest to select its host revision. Chronik source at 00505898

Dart

Vase uses the Dart SDK for wallet functions. The public snapshot has address examples for the earlier network. V2 payment tests run on a separate regtest profile. Dart source at 00505898

Rust

Use the bitcoinsuite crates for transaction primitives and the Chronik client for indexed data. The published source snapshot includes recorded block tests. Rust source at 00505898

TypeScript

Browser wallet work starts with Frank’s Nakamoto library. Build it from source while the V2 browser profile is being qualified. TypeScript source at cca381de

Payment compiler

Build the compiler from its source directory with npm ci and npm run build. Its package declares 0.1.0 and is private. An independently released compiler build is pending. Payment compiler source at 00505898

Download the tooling directory (JSON).

What has been tested together?

On the private vase-v2-regtest/1 profile, Vase at 5505d10b sent two payments using the Dart wallet code and the Chronik-enabled daemon at 0464de78. Each payment sent 1 test XPI and paid a fee of 0.287 test XPI. This is one local wallet and daemon pairing. Rust V2 wallet payments still need their own compatibility check.

The Frank TypeScript wallet and Nakamoto SDK at cca381de passed 13 integration tests against that daemon, including receipt confirmation through Chronik. In the private Vase browser lab, a 1 XPI payment was signed in Chromium, mined at height 103 and looked up in the explorer. Its 287 bytes cost 287 atoms at the TypeScript wallet’s regtest fee setting. The receipt and exact source revision are in the tooling directory.

Explore the chain

Lotus V2 explorer reads the node’s Chronik index. Check development status and find the explorer source.

Downloads and older software

Check release availability, browse Documentation, or run the legacy Dart and Rust SDK quickstarts.