tx: encode as hex