renamed local variables from txid to txhash for consistency with other Chain APIs