better way to get a Tx object from a tex_hex courtesy of @richardkiss
add more example bitcoind code