allow object for gettx.
optimize tx lookup.