This page explains how to run and operate an MSB (Main Settlement Bus) node locally so you can:
fund accounts (peer MSB addresses + wallet MSB addresses)
deploy/check subnet registrations
inspect txs and debug settlement
It does not modify the MSB repo; it only documents how to use it.
0) Glossary (quick)
bootstrap: 32-byte hex id (64 hex chars) identifying the MSB Autobase.
channel: discovery topic (string) that MSB nodes must share to find each other.
store: local persisted data for one node (usually stores/<name>/...).
MSB address: bech32m address like trac1....
fee: MSB-level fee required to broadcast a transaction.
confirmed vs unconfirmed (MSB): confirmed = signed state, unconfirmed = local unsigned view.
Pear (MSB scripts typically use Pear)
Optional (if you run MSB tests):
2) Install MSB repo
From your workspace root:
3) Run MSB locally
3.1 Interactive CLI node (recommended)
This starts an interactive MSB node and stores data under main_settlement_bus/stores/node1/.
3.2 RPC node (optional)
4) Admin mode (if you need whitelisting/init)
MSB has extra admin-only commands (whitelisting, initialization migrations, banning). In the current MSB codebase, admin mode is inferred by store name:
5) MSB commands you’ll use most
Inside the MSB terminal, run /help for the full list. Common ones:
Network/state inspection
Account inspection
/get_balance <address> <confirmed> (confirmed defaults to true)
Funding (critical for trac-peer)
To make an address “exist” in MSB state and have fee balance:
You must fund:
each peer’s printed Peer MSB address (peer node operations)
each wallet user MSB address (the requester) that will sign contract txs
If you don’t, you’ll see errors like:
Requester address not found in state
Subnet deployment entries (for trac-peer)
/deployment <subnet_bootstrap_hex32> <channel>
/get_deployment <subnet_bootstrap_hex32>
Tx lookup / debugging
/get_tx_details <tx_hash>
/get_extended_tx_details <tx_hash> <confirmed>
/get_txs_hashes <start> <end>
6) Whitelisting + initial balances (optional bootstrap workflow)
MSB supports an initialization phase that reads from files:
main_settlement_bus/migration/initial_balances.csv
main_settlement_bus/whitelist/addresses.csv
In an MSB admin terminal you can run:
7) Next: run trac-peer
Once MSB is running and you know:
continue with: