extract tx struct