This is demo explorer, use own at risk
A minimal Rust command-line explorer for the RGB protocol, supporting Bitcoin mainnet, testnet3, and testnet4 networks.
It features public RGB Node integration (e.g., rgbtools.org), and is ready for extension as a wallet, asset explorer, or DEX interface.
- Multi-network support: Select mainnet, testnet3, or testnet4
- Command-line interface: Simple CLI using
clap - Public RGB Node integration: Connects to rgbtools.org endpoints by default
- Custom RGB Node: Override with
--node-url - Sample explorer commands: List assets, show contract, sync with node, get balance (mock/demo, easily extendable)
If you don't have Rust installed, get it via rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shgit clone https://github.com/AreaLayer/rgb-demo-explorer.git
cd rgb-demo-explorer
cargo buildcargo run -- --network mainnet list-assets
cargo run -- --network testnet3 show-contract 0102030405060708090a0b0c0d0e0f10
cargo run -- --network testnet4 get-balance 01abcdef23456789fedcba0987654321
cargo run -- --network mainnet --node-url https://yournode.example.com sync--network [mainnet|testnet3|testnet4]– Select Bitcoin network (default: testnet3)--node-url <URL>– Optional: Use a custom RGB Node endpoint
list-assets– List demo assets (extend for real explorer)show-contract <CONTRACT_ID>– Show info for a contractget-balance <ASSET_ID>– Show demo/mock asset balancesync– Mock sync with RGB Node
- Real RGB node integration:
Replace the mock HTTP calls inexplorer.rswith real API requests and response parsing usingreqwestandserde_json. - Add more commands:
Extend the CLI by adding more variants to theCommandsenum and implementing new functions inexplorer.rs. - UI/UX improvements:
Add better error handling, pretty-print, and asset/contract parsing as needed.
This explorer uses public RGB Node endpoints by default:
- Mainnet:
https://mainnet.rgbtools.org - Testnet3:
https://testnet3.rgbtools.org - Testnet4:
https://testnet4.rgbtools.org
You may override the node URL with --node-url.
MIT