transaction.txJsonToPbSerialize a transaction, convert transaction object in json format into protobuf structure