Bitcoin Server (bs) is a console application that is included as part of libbitcoin-server. It implements a full node on the Bitcoin P2P network as well as a blockchain query service based on ZeroMQ.

Documentation and signed binaries for Linux, OSX and Windows are available on GitHub.

Example

$ bs
Using config file: "/usr/local/etc/libbitcoin/bs.cfg"
Press CTRL-C to stop server.
INFO <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;page=worker&amp;do=create" rel="nofollow">?</a>worker</span>: worker ready
INFO <span class="createlink"><a href="/ikiwiki.cgi?page=database&amp;do=create&amp;from=Bitcoin_Server" rel="nofollow">?</a>database</span>: Mapping: "/blockchain/blocks_lookup"
INFO <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;do=create&amp;page=database" rel="nofollow">?</a>database</span>: Mapping: "/blockchain/blocks_rows"
INFO <span class="createlink"><a href="/ikiwiki.cgi?do=create&amp;page=database&amp;from=Bitcoin_Server" rel="nofollow">?</a>database</span>: Mapping: "/blockchain/spends"
INFO <span class="createlink"><a href="/ikiwiki.cgi?do=create&amp;page=database&amp;from=Bitcoin_Server" rel="nofollow">?</a>database</span>: Mapping: "/blockchain/txs"
INFO <span class="createlink"><a href="/ikiwiki.cgi?page=database&amp;do=create&amp;from=Bitcoin_Server" rel="nofollow">?</a>database</span>: Mapping: "/blockchain/history_lookup"
INFO <span class="createlink"><a href="/ikiwiki.cgi?page=database&amp;do=create&amp;from=Bitcoin_Server" rel="nofollow">?</a>database</span>: Mapping: "/blockchain/history_rows"
INFO <span class="createlink"><a href="/ikiwiki.cgi?do=create&amp;page=database&amp;from=Bitcoin_Server" rel="nofollow">?</a>database</span>: Mapping: "/blockchain/stealth_index"
INFO <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;do=create&amp;page=database" rel="nofollow">?</a>database</span>: Mapping: "/blockchain/stealth_rows"
06:31:07.201970 FATAL <a href="../Node/">node</a> ================= Startup =================
06:31:07.213970 ERROR <a href="../Node/">node</a> ================= Startup =================
06:31:07.224971 INFO <a href="../Node/">node</a> ================= Startup =================
06:31:07.236972 INFO <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;page=session&amp;do=create" rel="nofollow">?</a>session</span> Set start height (364855)
Server started.
06:31:07.925011 INFO <span class="createlink"><a href="/ikiwiki.cgi?page=protocol&amp;do=create&amp;from=Bitcoin_Server" rel="nofollow">?</a>protocol</span> Connected to peer <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;page=88.103.255.166%3A8333&amp;do=create" rel="nofollow">?</a>88.103.255.166:8333</span> on slot <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;do=create&amp;page=2" rel="nofollow">?</a>2</span> (1 total)
06:31:17.958585 INFO <span class="createlink"><a href="/ikiwiki.cgi?do=create&amp;page=protocol&amp;from=Bitcoin_Server" rel="nofollow">?</a>protocol</span> Connected to peer <span class="createlink"><a href="/ikiwiki.cgi?page=58.96.171.129%3A8333&amp;do=create&amp;from=Bitcoin_Server" rel="nofollow">?</a>58.96.171.129:8333</span> on slot <span class="createlink"><a href="/ikiwiki.cgi?do=create&amp;page=0&amp;from=Bitcoin_Server" rel="nofollow">?</a>0</span> (2 total)
06:31:22.770860 INFO <span class="createlink"><a href="/ikiwiki.cgi?page=protocol&amp;do=create&amp;from=Bitcoin_Server" rel="nofollow">?</a>protocol</span> Connected to peer <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;page=82.69.121.229%3A8333&amp;do=create" rel="nofollow">?</a>82.69.121.229:8333</span> on slot <span class="createlink"><a href="/ikiwiki.cgi?do=create&amp;page=1&amp;from=Bitcoin_Server" rel="nofollow">?</a>1</span> (3 total)
06:34:35.383877 INFO <span class="createlink"><a href="/ikiwiki.cgi?do=create&amp;page=poller&amp;from=Bitcoin_Server" rel="nofollow">?</a>poller</span> Block #364856 00000000000000001589e050ee0ffeefbf8b37780378fdd8af346e0a8bdec7aa
06:34:35.882906 INFO <span class="createlink"><a href="/ikiwiki.cgi?do=create&amp;page=poller&amp;from=Bitcoin_Server" rel="nofollow">?</a>poller</span> Block #364857 0000000000000000153080d858e282eb4deaee5147e4bf1644711d1dca8a7f8d
06:37:58.961521 INFO <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;do=create&amp;page=poller" rel="nofollow">?</a>poller</span> Block #364858 000000000000000008f22ea4b13b2e6d6c0a957f76edaff62de69e64dade09a5
06:45:17.251590 INFO <span class="createlink"><a href="/ikiwiki.cgi?page=poller&amp;do=create&amp;from=Bitcoin_Server" rel="nofollow">?</a>poller</span> Block #364859 000000000000000014555cf76ab1d82e9a3d529adf3559cc8ea5ce343b9a3d65
07:05:44.277772 INFO <span class="createlink"><a href="/ikiwiki.cgi?page=poller&amp;do=create&amp;from=Bitcoin_Server" rel="nofollow">?</a>poller</span> Block #364860 000000000000000010985bd204ca899fc8725d8e32896c76d41518ad6281d943
07:17:37.688576 INFO <span class="createlink"><a href="/ikiwiki.cgi?page=poller&amp;do=create&amp;from=Bitcoin_Server" rel="nofollow">?</a>poller</span> Block #364861 00000000000000000f62b25f4915ad89ef627cfedac15b133aa6f4f1457bd89c
07:45:43.767015 INFO <span class="createlink"><a href="/ikiwiki.cgi?page=poller&amp;do=create&amp;from=Bitcoin_Server" rel="nofollow">?</a>poller</span> Block #364862 00000000000000001542a48d1b2fce804be1c59d65c9d151da14b0fdbac9943a
07:45:45.081090 INFO <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;page=poller&amp;do=create" rel="nofollow">?</a>poller</span> Block #364863 00000000000000000e7bf292d46e24b8ec9fdc8c096672a76506077edf6e1417
07:48:52.000781 INFO <span class="createlink"><a href="/ikiwiki.cgi?page=poller&amp;do=create&amp;from=Bitcoin_Server" rel="nofollow">?</a>poller</span> Block #364864 0000000000000000078a32b267012a7d0b7aba50cdea76adecba28b1864e2489
07:51:24.524505 INFO <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;page=poller&amp;do=create" rel="nofollow">?</a>poller</span> Block #364865 000000000000000004af6f65907e8ff5a5d24d22775afd025cba3b78a89a1656
07:57:45.564299 INFO <a href="../Network/">network</a> Channel failure <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;do=create&amp;page=88.103.255.166%3A8333" rel="nofollow">?</a>88.103.255.166:8333</span> unable to reach remote host (boost code 121)
07:57:45.722308 INFO <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;page=protocol&amp;do=create" rel="nofollow">?</a>protocol</span> Connected to peer <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;do=create&amp;page=199.192.78.194%3A8333" rel="nofollow">?</a>199.192.78.194:8333</span> on slot <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;do=create&amp;page=2" rel="nofollow">?</a>2</span> (3 total)
07:58:22.055386 INFO <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;do=create&amp;page=poller" rel="nofollow">?</a>poller</span> Block #364866 0000000000000000082767768320cfdc92b04a8d605e95db3303d26c0a887f6d
08:11:32.129576 INFO <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;page=poller&amp;do=create" rel="nofollow">?</a>poller</span> Block #364867 000000000000000003051b58e27c0377bea22bc571a483fa60c7e8d8f8ff4010
08:35:22.331379 INFO <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;do=create&amp;page=poller" rel="nofollow">?</a>poller</span> Block #364868 000000000000000006909680acefb7ae751b9e6ccf007362dd6738331ad5b1b8
08:46:59.954280 INFO <span class="createlink"><a href="/ikiwiki.cgi?do=create&amp;page=poller&amp;from=Bitcoin_Server" rel="nofollow">?</a>poller</span> Block #364869 00000000000000000761ddfcabc066e809336659bb34ae9663df8e9fa86c500a
09:05:59.489458 INFO <span class="createlink"><a href="/ikiwiki.cgi?page=poller&amp;do=create&amp;from=Bitcoin_Server" rel="nofollow">?</a>poller</span> Block #364870 00000000000000000e5e6c456630aa7e00c783bea5b56f79c570e101bb6db4df
09:15:34.042321 INFO <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;do=create&amp;page=poller" rel="nofollow">?</a>poller</span> Block #364871 0000000000000000132c018cd5294fdd2a0a85732a7ab7ab9fffdd9279c07266
09:23:11.005458 INFO <span class="createlink"><a href="/ikiwiki.cgi?from=Bitcoin_Server&amp;do=create&amp;page=poller" rel="nofollow">?</a>poller</span> Block #364872 0000000000000000142d68039747b70bc5eca0113fc349d396679630b421bb40
09:30:55.710037 INFO <span class="createlink"><a href="/ikiwiki.cgi?page=poller&amp;do=create&amp;from=Bitcoin_Server" rel="nofollow">?</a>poller</span> Block #364873 00000000000000000a3b280dc91f6d9efee96d56af12a18b5702d6203e3332ab
09:34:13.029323 INFO <span class="createlink"><a href="/ikiwiki.cgi?do=create&amp;page=poller&amp;from=Bitcoin_Server" rel="nofollow">?</a>poller</span> Block #364874 000000000000000005c026fcd0b5eab2abab70d367f78f5e64d4dc565ebba394
10:07:04.751099 INFO <span class="createlink"><a href="/ikiwiki.cgi?do=create&amp;page=poller&amp;from=Bitcoin_Server" rel="nofollow">?</a>poller</span> Block #364875 00000000000000000226556b8e3a5a7336f28155a40a507ead0918230b8d29b5
...

See Also

References