Bitcoin full node and query server

Sep 30, 2020

View in context in the libbitcoin Slack #general mirror.

neillm12:27
Unofficially, if you create a bx.cfg file with the url line like url = tcp://testnet2.libbitcoin.net:29091, you can run this:
./bx fetch-block -c bx.cfg.v4.testnet -t 1
block
{
    bits 486604799
    hash 00000000b873e79784647a6c82962c70d228557d24a747ea4d1b8bbe878e1206
    merkle_root f0315ffc38709d70ad5647e22048358dd3745f3ce3874223c80a7c92fab0c8ba
    nonce 1924588547
    previous_block_hash 000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943
    time_stamp 1296688928
    version 1
    transactions
    {
        transaction
        {
            hash f0315ffc38709d70ad5647e22048358dd3745f3ce3874223c80a7c92fab0c8ba
            inputs
            {
                input
                {
                    address_hash a2f76840287f14442f42551050c8700d8ad16481
                    previous_output
                    {
                        hash 0000000000000000000000000000000000000000000000000000000000000000
                        index 4294967295
                    }
                    script "[20e7494d] [7f] [2f503253482f]"
                    sequence 4294967295
                }
            }
            lock_time 0
            outputs
            {
                output
                {
                    address_hash ee9103399bfb42a091a7b537bed4a8552e9611ca
                    script "[021aeaf2f8638a129a3156fbe7e5ef635226b0bafd495ff03afe2c843d7e3a4b51] checksig"
                    value 5000000000
                }
            }
            version 1
        }
    }
}