danpape / libtxref-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 68.5%Language:CMake 31.5%