Archive of the libbitcoin Slack #general channel.
version4 libbitcoin-server (i.e. bs) can respond to several queries from bitcoin-cli, over the json-rpc interface. But if you're asking if libbitcoin-client can query bitcoind, the answer is no because it doesn't support a high performance query interface.version3 is production, so it's recommended right now. You may want to look at libbitcoin-node, as it contains everything needed to communicate with bitcoin peers on the p2p protocol. libbitcoin-client is specifically made to communicate with libbitcoin-server, so it's not clear it's what you want.tcp://31.127.58.6:8333
version3 client code, you can query the community servers: https://github.com/libbitcoin/libbitcoin-server/wiki/Community-Serversvoid session::start_channel(channel::ptr channel,
result_handler handle_started)
{
channel->set_notify(notify_on_connect_);
channel->set_nonce(pseudo_random::next(1, max_uint64));
// The channel starts, invokes the handler, then starts the read cycle.
channel->start(
BIND3(handle_starting, _1, channel, handle_started));
}
void session::handle_starting(const code& ec, channel::ptr channel,
result_handler handle_started)
{
if (ec)
{
LOG_DEBUG(LOG_NETWORK)
<< "Channel failed to start [" << channel->authority() << "] "
<< ec.message();
handle_started(ec);
return;
}
attach_handshake_protocols(channel,
BIND3(handle_handshake, _1, channel, handle_started));
}