devchain

command
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Command devchain is a local stand-in chain for trying bbox without a node, a settlement service or any coin: it serves a node's JSON-RPC (generatetoaddress, sendrawtransaction, getinfo) at /rpc, a node's asset API under /api/v1/, and a header source (/v1/root/<height>, /v1/tip) that the bbox command and the overlay hosts check proofs against. Every transaction it accepts is mined at once, in a block of its own.

It is package testchain served over HTTP. It checks what it is sent the way a node would (inputs exist and are unspent, coinbase is mature, scripts verify, nothing non-final is mined) but it has no proof of work and no peers: its proofs mean nothing outside it, and nothing it mines is money. It is for a laptop, never for a network.

With -journal FILE every accepted RPC call is appended to FILE and replayed at the next start, so the chain survives a restart with the same blocks, and the hosts' and the homes' state still matches it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL