/libtxref-client

Primary LanguageC++BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

libtxref-client

This is a simple client application for testing the libtxref library.

At the moment, this client mainly tests that cmake can find an installed libtxref library to build and link against. The client program itself simply uses libtxref to encode the location of a sample transaction on the bitcoin blockchain and then prints the encoded data to stdout.

Building libtxref-client

To build libtxref-client, you will need:

  • cmake
  • g++, clang or Visual Studio (community edition)

libtxref-client uses a pretty standard cmake build system. If you have already built and installed libtxref you should be able to execute:

mkdir build
cd build
cmake ..
make

If you have installed libtxref to some special location you can try:

mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=/tmp/txref-install ..
make

You can then run the simple application:

> ./libtxref_client 
mainnet, extended txref for (blockHeight = 10000, transactionIndex=2, txoIndex=3):
tx1:yq3n-qqzq-qrqq-9z4d-2n